Re: sheet weirdness
Re: sheet weirdness
- Subject: Re: sheet weirdness
- From: Jeremy Dronfield <email@hidden>
- Date: Mon, 19 Apr 2004 10:16:15 +0100
The window isn't being resized. Your first log of [newVersionWindow
frame].size is called on the window frame before it becomes a sheet;
the extra 22 pixels in height is accounted for by the title bar. After
it becomes a sheet, those 22 pixels aren't included, so the second
call on [newVersionWindow frame].size is returning, in effect, the
contentRect size of newVersionWindow.
-Jeremy
===================================
SkoobySoft, home of viJournal
email: email@hidden or visit:
http://freespace.virgin.net/jeremy.dronfield/skoobysoft.html
===================================
On 19 Apr 2004, at 5:19 am, Daniel Todd Currie wrote:
The following code:
NSLog(@"size before: %@", NSStringFromSize([newVersionWindow
frame].size));
[NSApp beginSheet:newVersionWindow modalForWindow:windowForSheet
modalDelegate:nil didEndSelector:nil contextInfo:nil];
NSLog(@"size after: %@", NSStringFromSize([newVersionWindow
frame].size));
Yields the following run log entries:
2004-04-18 21:15:19.421 DTCVM Example[2690] size before: {465, 348}
2004-04-18 21:15:20.362 DTCVM Example[2690] size after: {465, 326}
Any ideas what is causing the window/sheet to be resized? 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.
_______________________________________________
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.