Commit Graph

40 Commits

Author SHA1 Message Date
Brian J. Burg eec9e9f417 Remove duplicate type_id() implementation for CFNumber 2012-11-16 15:17:47 -08:00
Brian J. Burg 04c0856f7d Implement AbstractCFType::type_id(). Switch to use CFTypeRef::downcast(). 2012-11-16 14:29:57 -08:00
Brian J. Burg 6bac6b0601 Fix CFArray test. 2012-11-16 12:07:31 -08:00
Brian J. Burg 070bc3e50d Remove erroneous assertion about retain count; add note. 2012-11-16 11:57:45 -08:00
Brian J. Burg 8af8ef0d6d Rewrite the Core Foundation wrapper system. 2012-11-16 11:03:26 -08:00
Patrick Walton 93ac0efc6b Retain elements when iterating over an array 2012-11-15 20:45:18 -08:00
Brian J. Burg 7e60aba04a Fix double release caused by base::as_CFType. 2012-11-15 09:20:10 -08:00
Brian J. Burg 1f0bc6db0d Add bindings for most CFSet methods, and static new() for the wrapper. 2012-11-14 13:37:55 -08:00
Brian J. Burg 7fcbf5112e Add binding for CFStringCreateWithBytes. 2012-11-12 19:22:20 -08:00
Brian J. Burg 3e5e34f4f4 Add support for getting floats out of CFNumber; add conversions from CFType to some other wrapper type; add AbstractCFType::type_id() 2012-11-09 15:01:34 -08:00
Brian J. Burg 925aad58aa Add CFURLGetTypeID() binding. 2012-11-08 15:21:53 -08:00
Brian J. Burg 22ff767266 Implement ToStr for CFString; fix off-by-one error in CFString::new_static; make clean now removes test binary. 2012-11-07 19:47:22 -08:00
Brian J. Burg a7eade7fc2 Add bindings for CFGetTypeID, CFHash, CFStringGetTypeID 2012-11-07 17:39:29 -08:00
Brian J. Burg f679a48102 Add all the CFString constants and enums. 2012-11-07 17:32:48 -08:00
Brian J. Burg 7f6dad8dd4 Add ALL the CFString function headers\!11 2012-11-07 16:11:42 -08:00
Brian J. Burg d316f05c00 Add wrapped and ref versions of CFArray.each/eachi(), and fix test. 2012-11-05 11:50:34 -08:00
Brian J. Burg 50d703c00f Add wrapped and ref versions of CFDictionary::each(), and fix indenting. 2012-11-05 11:50:10 -08:00
Brian J. Burg c9b58f8e70 Add some more immutable methods to CFDictionary. 2012-11-05 11:41:09 -08:00
Brian J. Burg fde0ba88ec Change AbstractCFType::as_type_ref() to use get_ref(), and add AbstractCFTypeRef::as_CFTypeRef(). 2012-11-02 18:41:33 -07:00
Brian J. Burg 37ea78bb34 Clean up CFString; add borrow_ref experiment. 2012-11-02 17:21:41 -07:00
Brian J. Burg b3354191be Add CFSet, miscellaneous things, and clean up base.rs. 2012-11-02 16:21:01 -07:00
Brian J. Burg 13a2ef813a Rework base CF bindings, and add simple bindings for CFArray, CFURL, CFData. 2012-11-01 19:41:35 -07:00
Brian J. Burg a3ab85e4c2 Add UniChar typedef. 2012-10-19 18:12:03 -07:00
Brian J. Burg 30d1ab2228 Add some missing moves, and rename static new_foo to new 2012-10-19 11:42:53 -07:00
Patrick Walton 6ef2001b3c Update to newest Rust 2012-10-18 17:03:47 -07:00
Brian J. Burg 1104c30097 Fix build when RUSTC is undefined in env 2012-10-04 19:15:32 -07:00
Patrick Walton 9733c605bd Update more for new exports 2012-09-27 13:00:56 -07:00
Patrick Walton 007b583183 Update for new exports 2012-09-27 10:49:03 -07:00
Brian J. Burg 22a7aa7479 Clean up makefile rules 2012-09-24 17:43:06 -07:00
Brian J. Burg fd581833ae Fix compiler crash-inducing code. 2012-09-20 17:23:27 -07:00
Patrick Walton be4e26b2c7 Update for standard library changes 2012-09-20 10:02:03 -07:00
Patrick Walton ac7115cc7e Use the right crate directive 2012-09-13 18:51:28 -07:00
Patrick Walton f0bda24a03 Fixes for language changes 2012-09-13 16:19:07 -07:00
Brian J. Burg 97addf5f31 Fix test build 2012-09-12 15:57:12 -07:00
Brian J. Burg 82a5fd52ba Fix build breaks 2012-09-10 08:44:14 -07:00
Brian J. Burg bff8e59aa3 More syntax fixing. 2012-09-04 19:00:27 -07:00
Brian J. Burg 94c7437779 Fix upstream build breaks by changing uses of reinterpret_cast to pass by reference. 2012-09-04 18:08:59 -07:00
Patrick Walton dfec7c491f Add CFNumbers 2012-08-30 19:14:36 -07:00
Patrick Walton 4d402a7937 Add booleans and refactor to support existential types.
This allows dictionaries to contain values of multiple CFTypes, while remaining
type-safe.
2012-08-30 18:43:43 -07:00
Patrick Walton 0225d54195 Initial commit 2012-08-30 17:41:23 -07:00