• 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: Graham Cox <email@hidden>
  • Date: Fri, 6 Feb 2009 10:54:47 +1100


On 6 Feb 2009, at 10:44 am, Jordan Breeding wrote:

NSSet/NSMutableSet


They don't compare by pointer, they compare using -isEqual:, which returns YES for the two strings that the OP indicated.

I can only suggest wrapping the objects in an NSValue using [NSValue valueWithPointer:]; though you'd need to experiment how exactly this tests for equality.

--Graham


_______________________________________________

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: Jordan Breeding <email@hidden>)

  • Prev by Date: Re: Simple memory problem
  • Next by Date: Re: Simple memory problem
  • Previous by thread: Re: Needed : set class for Cocoa
  • Next by thread: Re: Needed : set class for Cocoa
  • Index(es):
    • Date
    • Thread