Re: opaque types in NSArray
Re: opaque types in NSArray
- Subject: Re: opaque types in NSArray
- From: lajos kamocsay <email@hidden>
- Date: Sun, 20 Jul 2008 11:29:30 -0400
Thanks! (I did mean CGPathRef..)
-lajos
On Jul 20, 2008, at 10:25 AM, Michael Ash wrote:
On Sun, Jul 20, 2008 at 12:28 AM, lajos kamocsay <email@hidden>
wrote:
It seems that in order to add an opaque type (for example
CFPathRef) to an
NSArray it needs to be wrapped into an object. What's the best way
of doing
this?
I assume you mean a CGPathRef. That's a CFType, and all CFTypes are
also valid Objective-C objects, although the compiler doesn't know
this. So just cast to id and insert directly into the array.
Mike
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden