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

Re: Preventing an NSBox from expanding?


  • Subject: Re: Preventing an NSBox from expanding?
  • From: Adhamh Findlay <email@hidden>
  • Date: Thu, 21 Feb 2008 13:23:56 -0600


On Feb 21, 2008, at 1:10 PM, Kyle Sluder wrote:

On Thu, Feb 21, 2008 at 2:04 PM, Adhamh Findlay <email@hidden> wrote:
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?

Sounds like NSTabView performs custom logic when autoresizing its subviews, which makes perfect sense considering the special behavior of tab views. NSTabView is doing the right thing; why aren't you just sticking the NSBox inside the tab view item's view?

You mean like:

	[[[tabView selectedTabViewItem] view] setAutoresizesSubviews:NO];
	[[[tabView selectedTabViewItem] view] addSubview: boxView];

This would work, but the there are margins between the selectedTabViewItem and the boxView when I do this. This means that the contents of the box doesn't line up with the controls that are in the window, but outside of the tab view:



The line is the tab view, the bezel is the box....

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


References: 
 >Preventing an NSBox from expanding? (From: Adhamh Findlay <email@hidden>)
 >Re: Preventing an NSBox from expanding? (From: "Kyle Sluder" <email@hidden>)

  • Prev by Date: Re: 10.5.2 broke my open panel code!
  • Next by Date: Re: initWithFrame not being called on my NSImageView subclass
  • Previous by thread: Re: Preventing an NSBox from expanding?
  • Next by thread: Core Data problems
  • Index(es):
    • Date
    • Thread