• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Pin NSButton to right side of View
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Pin NSButton to right side of View
      • From: Andy Lee <email@hidden>
  • Prev by Date: NSComboBox item number limit?
  • Next by Date: Re: Pin NSButton to right side of View
  • Previous by thread: Re: NSComboBox item number limit?
  • Next by thread: Re: Pin NSButton to right side of View
  • Index(es):
    • Date
    • Thread