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 protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to