Re: Behavior of autoreleased window controller for closing window vs. app termination
Re: Behavior of autoreleased window controller for closing window vs. app termination
- Subject: Re: Behavior of autoreleased window controller for closing window vs. app termination
- From: James DiPalma <email@hidden>
- Date: Mon, 30 Sep 2002 22:50:48 -0400
Can you get a backtrace for both of your windowWillClose: hits?
A suggestion (that will not change anything about how your code works)
is to change this method:
- (id)initWithPersonID:(int)ID
{
self = [super initWithWindowNibName:@"User2"];
NSLog(@"Creating User Controller for %d",ID);
return self;
}
To something like this:
- (id) initWithPersonID:(int)pid
{
[self initWithWindowNibName:@"User2"];
NSLog(@"Creating User Controller for %d", pid);
return self;
}
Even though your class does not implement initWithWindowNibName:, your
superclass does, so this change will not change your application. But,
someday a subclass of your class may want to override
initWithWindowNibName: and that method would not get called during your
initWithPersonID:.
-jim
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.