• 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: Where is NSList?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Where is NSList?


  • Subject: Re: Where is NSList?
  • From: Greg Hulands <email@hidden>
  • Date: Wed, 28 Jul 2004 08:08:16 +1000

[NSArray indexOfObject:]

On 28/07/2004, at 8:07 AM, Tim Conkling wrote:

The reason NSArray/NSMutableArray doesn't work for my purposes is because there is no way for an object in an NSArray to know where its position in that NSArray is (unless I'm missing something), and for that information to remain accurate after the array is modified. This is a feature that is provided by, for example, the STL with its list and map templates, through the use of iterator objects.

I realize that Obj-C/Cocoa != C++/STL, but this just seems like a big omission.

Tim

On Jul 27, 2004, at 5:40 PM, David Brown wrote:

Look into NSArray and NSMutableArray

On Tue, 27 Jul 2004 17:40:09 -0400, Tim Conkling <email@hidden> wrote:
I'm surprised that Cocoa/CoreFoundation doesn't contain some sort of
iterable (iteratable?) container. Either I'm missing something, or this
is a rather large hole in the framework. I'm looking for a container
that returns iterators of some sort for each object stored in it, so
that each object knows exactly where it is in the container (making for
easy deletion, given the object to be deleted).

How do people handle this sort of thing in Cocoa? I'm used to STL's
map, list, et al, which use these sorts of iterators.

Thanks,
Tim
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


References: 
 >Where is NSList? (From: Tim Conkling <email@hidden>)
 >Re: Where is NSList? (From: David Brown <email@hidden>)
 >Re: Where is NSList? (From: Tim Conkling <email@hidden>)

  • Prev by Date: Re: Where is NSList?
  • Next by Date: Re: Default button surrounded by black square for Panther, not Jaguar
  • Previous by thread: Re: Where is NSList?
  • Next by thread: Re: Where is NSList?
  • Index(es):
    • Date
    • Thread