On Sun, Jul 20, 2008 at 12:28 AM, lajos kamocsay <[EMAIL PROTECTED]> 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 (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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]