• 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: Tommy Nordgren <email@hidden>
  • Date: Fri, 6 Feb 2009 01:55:05 +0100


On Feb 6, 2009, at 1:18 AM, Sean McBride wrote:

Tommy Nordgren (email@hidden) on 2009-02-06 6:29 PM said:

Do anyone know of a set container class for Cocoa objects, that use
pointer semantics.

Like this:
	NSMutableString  * s1 = [@"Hello" mutableCopy],  * s2 = [@"Hello"
mutableCopy];

Somesetclass *someSet = [[Somesetclass alloc]init];
[someSet add:s1];
[someSet add: s2];
// After these calls, someSet should contain 2 elements because s1 !=
s2 by pointer semantics

Depending on your exact needs, maybe NSCountedSet would be useful.

Sean


I have decided to do an implementation myself, as an objective c++ wrapper to
std::set<id>. I want to use the class to aid in destruction of directed cyclical object graphs,
in dual mode frameworks. NSHashTable
-------------------------------------
This sig is dedicated to the advancement of Nuclear Power
Tommy Nordgren
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


  • Follow-Ups:
    • Re: Needed : set class for Cocoa
      • From: "Sean McBride" <email@hidden>
References: 
 >Needed : set class for Cocoa (From: Tommy Nordgren <email@hidden>)
 >Re: Needed : set class for Cocoa (From: "Sean McBride" <email@hidden>)

  • Prev by Date: Re: CoreData migration and file change
  • Next by Date: Restoring selection to NSOutlineView
  • Previous by thread: Re: Needed : set class for Cocoa
  • Next by thread: Re: Needed : set class for Cocoa
  • Index(es):
    • Date
    • Thread