minSize changing by itself!
minSize changing by itself!
- Subject: minSize changing by itself!
- From: Daniel Todd Currie <email@hidden>
- Date: Fri, 14 May 2004 20:13:13 -0700
I have the following source in my new app (I say "new", because there
really are only 20-or-so other lines of code):
- (void)awakeFromNib
{
NSLog(@"window size = %@", NSStringFromSize([mainWindow frame].size));
NSLog(@"min size = %@", NSStringFromSize([mainWindow minSize]));
[...]
}
- (NSSize)windowWillResize:(NSWindow *)sender
toSize:(NSSize)proposedFrameSize
{
NSLog(@"window size = %@", NSStringFromSize([sender frame].size));
NSLog(@"min size = %@", NSStringFromSize([sender minSize]));
return(proposedFrameSize);
}
It gives me the following console log:
2004-05-14 19:03:00.560 myApp[4308] window size = {514, 322}
2004-05-14 19:03:00.582 myApp[4308] min size = {514, 338}
2004-05-14 19:03:12.825 myApp[4308] window size = {514, 322}
2004-05-14 19:03:12.825 myApp[4308] min size = {514, 338}
2004-05-14 19:03:12.922 myApp[4308] window size = {514, 338}
2004-05-14 19:03:12.922 myApp[4308] min size = {514, 340}
I never call setMinSize or any related method in the app, so why is it
changing? Furthermore, I have the minSize set to 300 pixels high in
IB, which, even if it is not counting the title bar, should still be
322 off the bat, not 338.
I tried tracking the problem in GDB, but it got into endless piles of
assembly that I simply can't follow.
TIAA,
-- Daniel Currie
_______________________________________________
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.