Re: Cocoa Autosizing Control
Re: Cocoa Autosizing Control
- Subject: Re: Cocoa Autosizing Control
- From: Rick Langschultz <email@hidden>
- Date: Wed, 21 Oct 2009 15:06:48 -0500
Thanks Jens,
If I implement a good working copy I will certainly put it into github
or an SVN repo so others can use it. Of course a pre-built view would
have been nice, I checked out the sproing example on the developer
sample code.
On Oct 21, 2009, at 2:57 PM, Jens Alfke wrote:
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