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 protected]>
To: Erg Consultant <[email protected]>
Cc: [email protected]
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 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/airedale%40tularosa.net
>
> This email sent to [email protected]
>
>


      
_______________________________________________

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