• 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: Needed : set class for Cocoa
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Needed : set class for Cocoa


  • Subject: Re: Needed : set class for Cocoa
  • From: "Adam R. Maxwell" <email@hidden>
  • Date: Fri, 06 Feb 2009 09:05:16 -0800


On Feb 6, 2009, at 8:47 AM, Sean McBride wrote:

On 2/5/09 7:57 PM, Adam R. Maxwell said:

The nice part is that it
can then be cast to an NSMutableSet.

Are you sure? I thought toll-free bridging only worked if you don't use
custom CF callbacks. IAC, I don't think the OP said he needed toll- free
bridging.

In the case of -[NSDictionary setObject:forKey:] it will first send copyWithZone: to a key, then invoke your callback. Based on previous discussion of that bug (which Apple says is not a bug), IIRC being told that the custom callbacks are always called, so for NSArray/NSSet it should just work.


--
Adam

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

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: 
 >Needed : set class for Cocoa (From: Tommy Nordgren <email@hidden>)
 >Re: Needed : set class for Cocoa (From: "Sean McBride" <email@hidden>)
 >Re: Needed : set class for Cocoa (From: Tommy Nordgren <email@hidden>)
 >Re: Needed : set class for Cocoa (From: "Sean McBride" <email@hidden>)
 >Re: Needed : set class for Cocoa (From: "Adam R. Maxwell" <email@hidden>)
 >Re: Needed : set class for Cocoa (From: "Sean McBride" <email@hidden>)

  • Prev by Date: Re: Needed : set class for Cocoa
  • Next by Date: NSProgressIndicator (spinning) on a dark background?
  • Previous by thread: Re: Needed : set class for Cocoa
  • Next by thread: Re: Needed : set class for Cocoa
  • Index(es):
    • Date
    • Thread