Pin NSButton to right side of View
Pin NSButton to right side of View
- Subject: Pin NSButton to right side of View
- From: Kam Dahlin <email@hidden>
- Date: Fri, 11 May 2007 15:33:31 -0700
Hello,
I have a custom view with an NSButton in it. The View expands to the
left (using a NSViewAnimation) when the user clicks the button. I am
trying to keep the button pinned to the right hand side of the view
as it expands and I have been able to "fake" this appearance by using
a NSViewAnimation to change the buttons location as the parent views
size changes. This works but it is really choppy looking. I have
read up on using custom NSAnimations and looked at using Matt
Gemmell's "MGViewAnimation" class instead, but before I do all of
that...
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 found a way to do this so far, or I am completely
dense and am overlooking something really simple. Could someone give
me some ideas?
Regards,
Kam Dahlin
_______________________________________________
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