• 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: Collections
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Collections


  • Subject: Re: Collections
  • From: "Shawn Erickson" <email@hidden>
  • Date: Thu, 9 Mar 2006 09:37:14 -0800

On 3/9/06, Manuel de la Pena <email@hidden> wrote:
> I have just move from Java to objective-c and I have lots of doubts
> about the objects that already exist in objective-c .

Objective-C is a language like Java. Cocoa is class library
(framework) like J2SE. Objective-C provides no objects/classes just a
runtime and compiler.

> I'm writing a program where I need to use different kinds of
> collection so as array and set, I have read about the NSArray and
> NSDictionary, but ... are there any other objects such as linked
> list, trees, etc ...

The Cocoa framework [1] provides NSArray (like ArrayList), NSSet (like
HashSet), NSDictionary (like HashMap) and also NSCountedSet. In
general those cover most needs so that is all that is provide in Cocoa
(Core Data provides additional capabilities). They are also built on
top of CoreFoundation types [2].

Many 3rd parties provide free frameworks (or straight code) that
implement additional data structures, if you find the need you could
utilize those. Also if you believe Apple should provide additional
capabilities in Cocoa file a enhancement defect with Apple [3].

-Shawn

[1] <http://developer.apple.com/documentation/Cocoa/Conceptual/Collections/index.html>
[2] <http://developer.apple.com/documentation/CoreFoundation/Conceptual/CFCollections/index.html#//apple_ref/doc/uid/10000124i>
[3] <http://developer.apple.com/bugreporter/>
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Collections (From: Manuel de la Pena <email@hidden>)

  • Prev by Date: Collections
  • Next by Date: Re: New and Updated Cocoa Documents Available
  • Previous by thread: Collections
  • Next by thread: Dropping controls on subclassed NSView
  • Index(es):
    • Date
    • Thread