Aha, that's really interesting to know that's allowed. This doesn't seem like its covered in the ARC docs at all, that I could see anyhow. I'll try that. Thanks!
On Oct 29, 2012, at 2:56 PM, John McCall <rjmcc...@apple.com> wrote: > You can use a temporary, as Ken suggests. Alternatively, in this case it's > safe to use the NSError** directly as a CFErrorRef*, and while ARC can't > reasonably know that and so prevents the cast, you can bypass that > restriction by casting through void*: > CFErrorRef* cfError = (CFErrorRef*) (void*) error; > > John. _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com