• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: opaque types in NSArray
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >opaque types in NSArray (From: lajos kamocsay <email@hidden>)
 >Re: opaque types in NSArray (From: "Michael Ash" <email@hidden>)

  • Prev by Date: Re: property name-to-accessor munging? (was: Dot Syntax docs missing?)
  • Next by Date: Being notified of changes to a file
  • Previous by thread: Re: opaque types in NSArray
  • Next by thread: NSOutlineView Groups with Core Data
  • Index(es):
    • Date
    • Thread