• 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: "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

  • Follow-Ups:
    • Re: opaque types in NSArray
      • From: lajos kamocsay <email@hidden>
References: 
 >opaque types in NSArray (From: lajos kamocsay <email@hidden>)

  • Prev by Date: Re: Obtaining the number of characters in a string
  • Next by Date: Re: property name-to-accessor munging? (was: Dot Syntax docs missing?)
  • Previous by thread: Re: opaque types in NSArray
  • Next by thread: Re: opaque types in NSArray
  • Index(es):
    • Date
    • Thread