Re: Manual layout of controls?
Re: Manual layout of controls?
- Subject: Re: Manual layout of controls?
- From: Brent Gulanowski <email@hidden>
- Date: Tue, 23 Jul 2002 14:28:32 -0400
On Monday, July 22, 2002, at 07:28 PM, Allan Odgaard wrote:
On tirsdag, juli 23, 2002, at 12:54 , Gibbons Burke wrote:
Looking at the F-script stuff you sent me it seems that this is the way
it's done there, and since .nib files are basically just archived objects
then I gues that's the only way to go... it's just so darn primitive,
tiresome and very short-sighted (considering that I tie the user to the
current font (size) and Aqua-look...
Sounds like cascading style sheets or something. In effect you want the UI
to dynamically adjust super-views when sub-views change, whereas as far as
I can tell, only the reverse is true in AppKit. So if the textField font
is increased by three points, the textField itself will increase by five
points, and its super-view will adjust to accomodate it?
Methinks you would need to do either of two things:
1. add a category to NSView with a method like
-dimensionsChangedForSubview: and whatever else
or
2. write a controller object that handles dynamic layout changes
In either case, it requires designing the logic for the layout
recomposition and hoping that you cover all possibilities and put proper
constraints on the parameters avaiable to the user.
My guess on why Apple didn't add this to AppKit is that they want most
components to be consistently sized as well as consistently laid out.
Brent
--
Inkubator: creating free, open source Mac games.
http://inkubator.idevgames.com - homepage
http://www.sourceforge.net/project/inkubator - project page
http://64.246.17.165/forum/forumdisplay.php?s=&forumid=17 - discussion
forums
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.