Re: Pin NSButton to right side of View
Re: Pin NSButton to right side of View
- Subject: Re: Pin NSButton to right side of View
- From: Andy Lee <email@hidden>
- Date: Fri, 11 May 2007 18:59:44 -0400
On May 11, 2007, at 6:33 PM, Kam Dahlin wrote:
I was wondering if there was a way to just keep the button pinned
to the MaxX of the custom View and then just animate the view by
itself?
I haven't used NSViewAnimation, so I don't know if it prevents this
from working, but why not use struts and springs in IB the same way
you would for any view? Use a strut on the right side of the button
and a spring on the left. You can also set the resizing behavior
programmatically using NSView's -setAutoresizingMask:.
--Andy
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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