On Mar 24, 2008, at 11:56 PM, Jens Alfke wrote:
On 24 Mar '08, at 9:51 PM, Samvel wrote:
I run into troubles trying to register my object with
NSNotificationCenter in class
-(id) init;
That's a fine place to do it.
//... (at this point self has lost it's original value
On Tue, Mar 25, 2008 at 12:51 AM, Samvel [EMAIL PROTECTED] wrote:
Hi,
I run into troubles trying to register my object with
NSNotificationCenter in class
-(id) init;
Basically here is my constructor:
-(id) init
{
self = [super init];
if( self) {
I think you're seeing a debugger anomaly when stepping through things.
Try logging self before and after.
NSLog(@self = %p, self);
- d
On Mar 25, 2008, at 1:04 AM, Samvel wrote:
On Mar 24, 2008, at 11:56 PM, Jens Alfke wrote:
On 24 Mar '08, at 9:51 PM, Samvel wrote:
I run into
Reason: I thought that at some point NSNotificationCenter has to be
instantiated in an application loading process and my constructor may
have executed at earlier stage.
Answer: Unfortunately the reason was much simpler than that. It turned
out to be an example (answer) to my prev.