On 29/05/2009, at 11:19 AM, Erg Consultant wrote:
- (id)init
{
if( !gReg )
{
if( ( self = [ super init ] ) )
{
// Zero out members...
keys = nil;
lastFlushTime = nil;
}
}
return self;
}
This is a little broken.
-init must a
t ran the exact same source file in another app and it all works
fine. Must be a stack blow or something.
From: David Blanton
To: Erg Consultant
Cc: cocoa-dev@lists.apple.com
Sent: Thursday, May 28, 2009 5:21:55 PM
Subject: Re: -init never gets sent
what doe
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.
Post your code for alloc and -init.
Your question can only be
How is your init defined?
Mike Manzano
Sent while mobile
On May 28, 2009, at 4: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?
T
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
To: Erg Consultant
Cc: cocoa-dev@lists.apple.com
Sent: Thursday, May 28, 2009 4:38:42 PM
Subject: Re: -init never
re else in the code.
Erg
From: David Blanton
To: Erg Consultant
Cc: cocoa-dev@lists.apple.com
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 w
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
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 (Cocoa-dev@lists.apple.c