Preventing an NSBox from expanding?
Preventing an NSBox from expanding?
- Subject: Preventing an NSBox from expanding?
- From: Adhamh Findlay <email@hidden>
- Date: Thu, 21 Feb 2008 13:04:36 -0600
Greetings,
I've got an NSBox that I am trying to install into a tab view item.
Here's the code:
NSBox *boxView = [foo theBox];
[[tabView selectedTabViewItem] setView: boxView];
This works great as all the controls in the box appear, but the
boxView expands to take up the full frame of the selectedTabViewItem.
This is a problem because I want to use the different between the
boxView and the selectedTabViewItem to resize the window, thus
preventing a lot of empty space in the window.
I've tried setting autoResizeMask to NSViewNotSizable, and turned off
all the automatic sizing options in IB, but the box still expands.
Is there a way to prevent the box from expanding?
Thanks,
Adhamh
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please 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