• 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
Re: Pin NSButton to right side of View
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Pin NSButton to right side of View
      • From: Kam Dahlin <email@hidden>
References: 
 >Pin NSButton to right side of View (From: Kam Dahlin <email@hidden>)

  • Prev by Date: Pin NSButton to right side of View
  • Next by Date: Re: Pin NSButton to right side of View
  • Previous by thread: Pin NSButton to right side of View
  • Next by thread: Re: Pin NSButton to right side of View
  • Index(es):
    • Date
    • Thread