Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: custom memory allocations




On Sep 30, 2005, at 10:21 AM, Greg Parker wrote:
Set newObject->isa = self; (i.e. the class being allocated). Zero out all other bytes belonging to newObject. That's all the runtime needs, and all other initialization is handled by whatever -init methods the class uses.

So I'm curious -- how is the retain count handled? I know that it's stored externally, but is it implicitly 1 on a new allocation?


- Ladd


_______________________________________________ Do not post admin requests to the list. They will be ignored. Objc-language mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/objc-language/email@hidden

This email sent to email@hidden
References: 
 >custom memory allocations (From: Niko Matsakis <email@hidden>)
 >Re: custom memory allocations (From: Greg Parker <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.