Re: -init never gets sent
Re: -init never gets sent
- Subject: Re: -init never gets sent
- From: David Blanton <email@hidden>
- Date: Thu, 28 May 2009 18:21:55 -0600
what does the declaration of init look like?
On May 28, 2009, at 5:46 PM, Erg Consultant wrote:
Oddly, the object returned is non-nil.
I should mention that the pointer being returned is a hack global
declared at the top of the file like this:
static Registry *gReg = nil;
but that shouldn't matter. And I've checked that that global is
never set to nil or created twice anywhere else in the code.
Erg
________________________________
From: David Blanton <email@hidden>
To: Erg Consultant <email@hidden>
Cc: email@hidden
Sent: Thursday, May 28, 2009 4:38:42 PM
Subject: Re: -init never gets sent
what is the result of [ Registry alloc ] ?
On May 28, 2009, at 5:34 PM, Erg Consultant wrote:
I have an object which I initialize like this:
gReg = [ [ Registry alloc ] init ];
Problem is, my init method never receives any message.
Does anyone know what can cause this?
Thanks,
Erg
_______________________________________________
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
_______________________________________________
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
_______________________________________________
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