|
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
ToThere is no NSLinkedList. What would the point of such an object be? There's already one ordered collection, NSArray.
Ordered and indexed. A list is ordered and non-indexed. An array has O(n) insert and remove and O(1) indexed random access. A list has O(1) insert and remove and O(n) indexed random access.
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.
This is a *very* naive view which may well lead to O(n^2) or worse implementations of O(1) problems!
| 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>) | |
| >Re: Where is NSList? (From: Dustin Voss <email@hidden>) | |
| >Re: Where is NSList? (From: Steve Checkoway <email@hidden>) | |
| >Re: Where is NSList? (From: Pandaa <email@hidden>) |
| Home | Archives | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2011 Apple Inc. All rights reserved.