-
Notifications
You must be signed in to change notification settings - Fork 57
Incorporate CoreFoundation ideas from other crates #692
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Important for usability of CFUUID. Part of #692.
Add conversion methods to/from Path/PathBuf, which assumes the path is a file:// URL. I've included quite a few tests and documentation here, since the behavior is fairly surprising when it comes to non-unicode paths, see Byron/trash-rs#124. I've also added conversion to/from `CFString` which (somewhat) parses the URL, for convenience and for easier testing. The naming for these methods mirror those of `url::Url`: https://docs.rs/url/2.5.4/url/struct.Url.html Part of #692.
I've finished the parts of this that I felt were important. A few things are not carried over from Most notable difference is probably that simple wrapper methods over the CF API are kept as stand-alone functions (for now, see #736). See also #719. |
Uh oh!
There was an error while loading. Please reload this page.
Go through the implementations in the following projects, and grab relevant ideas that
objc2-core-foundation
could use:core-foundation
(see also Tracking issue forcore-foundation-rs
issues/PRs #719)fruity::core_foundation
core-foundationr
cidre::cf
A few things I've identified already:
CFBase
integer types: 5bc094b.CFType
PartialEq
,Eq
andHash
impls: de1c9d9.CFType
Debug
impl: c76799e.CFString
conversions between&str
: c76799e.CFTypeID
s: 3468e00.CFNumber
: 3e0e109.PartialOrd
andOrd
: ff0d74c.CFData
: 5efb6eb.CFData::from_arc
hasn't been carried over (probably for the best though, the implementation seems wrong to only implementdeallocate
?).CFUUID
: 933f49c.CFError
: 4b630ef.CFDate
: 3fe19b2.CFDictionary
: 006b2e6CFArray
: 8a2f392CFSet
: Deferred for now.CFPropertyList
: Tracked in to Make using property lists easier #735.CFURL
: fe40927The text was updated successfully, but these errors were encountered: