Commit Graph

18 Commits

Author SHA1 Message Date
Jeff Muizelaar df7df6bb52 Add the ability to borrow values from the array.
This uses borrowed values from the array to avoid having to
Retain/Release during iteration. It also implements borrowing
for all TCFType.
2018-01-25 10:08:34 -05:00
Linus Färnstrand ab08525293 Rename as_untyped -> to_untyped, add into_untyped 2018-01-24 08:57:50 +01:00
Linus Färnstrand 70dd9c3a7e Remove deprecated methods 2018-01-23 22:41:37 +01:00
Linus Färnstrand aae7c708c8 Change ConcreteTypeRef to an associated value 2018-01-23 22:41:37 +01:00
Linus Färnstrand 3f4f6a0db2 Simplify CFArray test with new downcast method 2018-01-20 16:37:16 +01:00
Linus Färnstrand b13257441d Add cheap casting between CF types 2018-01-20 16:37:16 +01:00
Linus Färnstrand 4e9cbd7387 Add test for as_untyped 2017-11-28 16:46:33 +01:00
Linus Färnstrand 31fcb64bf1 Fix bug in CFArray::to_untyped that made the retain count wrong 2017-11-28 16:19:31 +01:00
Linus Färnstrand 3ef9e779b0 Implement From<_> for CFNumber 2017-11-27 15:10:40 +01:00
Jeff Muizelaar 8514c48110 Mark FromVoid more appropriately as unsafe 2017-11-26 19:00:44 -05:00
Jeff Muizelaar 0253ee24ba Add a type parameter to CFArray
This puts us on a path to greater type safety when using CFArrays
2017-11-25 13:02:04 -05:00
ratake e3fc4fe3e4 Implement Debug for all types 2017-11-12 17:41:29 -08:00
ratake 8759071ea7 Implement ExactSizeIterator for CFArrayIterator 2017-11-07 20:58:27 -08:00
Christian Howe 75740926cf Add CFArray get_values and get_all_values 2017-01-02 21:23:55 -05:00
Luo 42c5220f8a let CFIndex&CFRelease be public 2016-05-12 06:35:56 +08:00
Steven Fackler a3ce1d3ac3 Ensure back-compat 2015-09-05 21:45:52 -07:00
Steven Fackler 3f725f97eb Start splitting out a separate sys package
Moved array and base so far
2015-09-05 21:32:34 -07:00
Steven Fackler 48b341bb4b Move core-foundation to a subdirectory 2015-09-05 21:24:20 -07:00