Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Preventing an NSBox from expanding?



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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.