• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
minSize changing by itself!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Prev by Date: NSTableView not scrolling.
  • Next by Date: word-wrap in cells of an NSTableView?
  • Previous by thread: Re: NSTableView not scrolling. [fixed]
  • Next by thread: word-wrap in cells of an NSTableView?
  • Index(es):
    • Date
    • Thread