• 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: newbie confused by obj-c syntax
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: newbie confused by obj-c syntax


  • Subject: Re: newbie confused by obj-c syntax
  • From: Roarke Lynch <email@hidden>
  • Date: Tue, 15 Mar 2005 08:04:28 -0500


On Mar 15, 2005, at 03:54, Daniel Child wrote:
Three questions:
1) Is it better to always use NSArray and NSMutableArray classes, rather than create your own classes of homegrown class objects.
2) How do you return an array (and not lose it).

More or less, yes. NSArray, NSSet, and NSDictionary (and their mutable variants) are the core collection classes for cocoa. You pretty much won't ever need to subclass them.


I think you should take a bit and sit down with some example code:
http://developer.apple.com/documentation/Cocoa/Conceptual/Collections/ index.html#//apple_ref/doc/uid/10000034i



Roarke Lynch ------------------------------- email@hidden

_______________________________________________
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: 
 >newbie confused by obj-c syntax (From: Daniel Child <email@hidden>)

  • Prev by Date: Re: newbie confused by obj-c syntax
  • Next by Date: Re: NSNumber & C data types
  • Previous by thread: Re: newbie confused by obj-c syntax
  • Next by thread: Re: newbie confused by obj-c syntax
  • Index(es):
    • Date
    • Thread