• 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: Cocoa Dev Style: Using Class versus Object Methods
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cocoa Dev Style: Using Class versus Object Methods


  • Subject: Re: Cocoa Dev Style: Using Class versus Object Methods
  • From: Nick Zitzmann <email@hidden>
  • Date: Thu, 7 Aug 2008 23:28:05 -0600


On Aug 7, 2008, at 11:08 AM, Lee, Frederick wrote:

1) why use instantiated objects versus classes (via class methods)?

Because class methods other than +new return autoreleased objects, which makes non-GC memory management a little bit easier.


2)      Are classes stored in the stack & instatiated objects on the
heap?


In Mac OS X, everything (including classes) is stored in memory except for function/method arguments, which are either stored in the stack or in one or more CPU registers, depending on the CPU architecture and the size of the data structure.

Nick Zitzmann
<http://www.chronosnet.com/>




_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Cocoa Dev Style: Using Class versus Object Methods
      • From: Uli Kusterer <email@hidden>
    • Re: Cocoa Dev Style: Using Class versus Object Methods
      • From: "Shawn Erickson" <email@hidden>
References: 
 >Cocoa Dev Style: Using Class versus Object Methods (From: "Lee, Frederick" <email@hidden>)

  • Prev by Date: Re: How to tell whether an executable supports GC?
  • Next by Date: Basic Obj-C Question on Memory and Strings
  • Previous by thread: Cocoa Dev Style: Using Class versus Object Methods
  • Next by thread: Re: Cocoa Dev Style: Using Class versus Object Methods
  • Index(es):
    • Date
    • Thread