Trouble with NSView resizing
Trouble with NSView resizing
- Subject: Trouble with NSView resizing
- From: Rick Mann <email@hidden>
- Date: Sat, 26 Mar 2011 23:22:14 -0700
I've got a lot more experience manipulating views in iOS than I do in Mac OS X, so forgive me if this is a stupid question.
I have a plug-in based app that behaves a lot like IB 3 does. The user can select one of the instances of a plug-in element in a canvas, and an inspector window changes its configuration to correspond to that selected object (think of it as a view in a NIB).
My code gets the inspector views from each plug-in and adds them to a container view in my inspector window. The problem is that if I resize the inspector window, the views are pinned to the right edge, and worse, move *upward* as I grow the window downward. They'll keep going 'till the go *over* the panel's title bar, and then they're clipped by the outer boundary of the panel.
My regular windows, into which views from the plug-ins are also installed, behave as you would expect.
What am I missing? Reading through the docs on NSPanel differences doesn't reveal anything obvious. Running my panel in test mode from IB (which is very basic there, with few views) behaves the same way.
Thanks for the help!
--
Rick
_______________________________________________
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