Re: Cocoa Autosizing Control
Re: Cocoa Autosizing Control
- Subject: Re: Cocoa Autosizing Control
- From: Jens Alfke <email@hidden>
- Date: Wed, 21 Oct 2009 12:57:08 -0700
On Oct 21, 2009, at 12:29 PM, Rick Langschultz wrote:
I am writing an application which can insert objects into a canvas.
The application has an inspector like Dashcode or Interface Builder.
Under the ruler view of Interface Builder 3.X there is an autosizing
control with "springs" that a user can set to make an object expand
when a window / view resizes, or have the control stay to the left,
top, right, bottom.
I would like my application to make some use of the same type of
control. The user would use the inspector and the sizing control to
set constraints on where the image / other object would remain on
the screen when the document's window is resized.
That's not much like any standard control type. You'd have to
implement such a control from scratch, i.e. by implementing drawRect,
mouseDown, etc. I've never heard of a 3rd party implementation.
—Jens_______________________________________________
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