Re: Why resizing doesn't work for me ?
Re: Why resizing doesn't work for me ?
- Subject: Re: Why resizing doesn't work for me ?
- From: Greg Titus <email@hidden>
- Date: Tue, 4 Dec 2001 10:00:05 -0800
On Tuesday, December 4, 2001, at 01:20 AM, kubernan wrote:
Hello,
Because i had no response, i repost the same question : i don't find
solution.
If i display more than one instance of the same window and call a
resize function in my program,
the second window is resizing instead of the first one.
------ Create.m ---------
- (id)init {
self = [super init];
if (![NSBundle loadNibNamed:@"CreateWindow" owner:self]) {
NSLog(@"Can't launch : CreateWindow.nib");
[self release];
}
}
The only possibility that occurs to me off-hand is that you are calling
-init on the same object twice. This would load the nib a second time
with the same owner, and the "myParentWindow" variable would get set to
the second (last loaded) window, replacing the first window.
Could you share the code that is creating the Create objects?
Hope this helps,
--Greg