• 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: Chris Hanson <email@hidden>
  • Date: Wed, 28 Jul 2004 01:44:53 -0700

On Jul 27, 2004, at 11:09 PM, Tim Conkling wrote:
Basically, all I was asking was whether Apple had created a linked list object for Cocoa (hence the title of my original post); I was surprised that I had not seen such a class in the Cocoa documentation and was thinking I may have missed something.

There is no NSLinkedList. What would the point of such an object be? There's already one ordered collection, NSArray.

I'd suggest using NSArray/NSMutableArray for ordered collections, and only worrying about their access characteristics if use and profiling of your application point to them as a performance issue.

If that happens, then you can create a custom subclass of NSArray or NSMutableArray -- and possibly an NSEnumerator subclass to go with them -- that meets your particular access characteristics and also interoperates well with the rest of the frameworks.

-- Chris

--
Chris Hanson <email@hidden>
http://www.livejournal.com/users/chanson/
_______________________________________________
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: Shawn Erickson <email@hidden>)
 >Re: Where is NSList? (From: Tim Conkling <email@hidden>)
 >Re: Where is NSList? (From: Steve Checkoway <email@hidden>)
 >Re: Where is NSList? (From: Tim Conkling <email@hidden>)

  • Prev by Date: Re: How to change background color of NSDrawer?
  • Next by Date: Re: Custom Widget
  • Previous by thread: Re: Where is NSList?
  • Next by thread: Re: Where is NSList?
  • Index(es):
    • Date
    • Thread