window min/max Size and toolbar
window min/max Size and toolbar
- Subject: window min/max Size and toolbar
- From: Ken Victor <email@hidden>
- Date: Thu, 10 May 2007 11:51:04 -0700
calling -[NSWindow minSize] or -[NSWindow maxSize] empirically return
the window's size including any visible NSToolbar.
however... the size passed to setMinSize and setMaxSize empirically
must not include the size of the visible toolbar. if you don't first
subtract out the visible height of the toolbar, then after calling
setMinSize or setMaxSize, the min and max sizes will be off by the
size of the toolbar.
this seems like a bug to me, and i couldn't find any documentation
describing such behavior.
can anyone disabuse me of my opinion that this is a bug? or at best a
"document clarification bug"? or point me to some documentation that
describes this behavior?
thanx,
ken
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden