In other words, if you have a simple class like this:

@interface MyClass : NSObject {
        id obj;
}
@end

Then when -init is called is 'obj' *guaranteed*, always, in all versions of OS X, to be nil?

Yes:

http://developer.apple.com/documentation/Cocoa/Conceptual/MemoryMgmt/Tasks/AllocInitObjects.html#/ /apple_ref/doc/uid/20000048-1003201

Although it happens on alloc/allocWithZone/etc, not init.

Ryan
_______________________________________________

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