• 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
Preventing an NSBox from expanding?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Preventing an NSBox from expanding?
      • From: "Kyle Sluder" <email@hidden>
  • Prev by Date: Re: initWithFrame not being called on my NSImageView subclass
  • Next by Date: Re: Optional methods
  • Previous by thread: Re: NSMutableArray Problem
  • Next by thread: Re: Preventing an NSBox from expanding?
  • Index(es):
    • Date
    • Thread