Re: opaque types in NSArray
Re: opaque types in NSArray
- Subject: Re: opaque types in NSArray
- From: "Michael Ash" <email@hidden>
- Date: Sun, 20 Jul 2008 10:25:30 -0400
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