• 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: Kam Dahlin <email@hidden>
  • Date: Fri, 11 May 2007 16:20:14 -0700

Hi Andy,

Thanks for the help. I tried that initially and it does work, the problem I have is that when I resize my view, the icon for the button jumps around. As the view is being resized the button starts to stutter in place and I haven't really found anything to keep this behavior for occurring. If I just set the size of the view and I don't animate it, I get a quick flash where the button, appears on the far left of the view, and then jumps back to it's location.

This is what started me down the animation road with both the view and the button, but I haven't had much luck with either approach.

Regards,

Kam Dahlin
Studio Systems Specialist
Vulcan Studio Group
Vulcan Inc.
email@hidden

The best time to add insult to injury is when you are signing someones cast.


On May 11, 2007, at 3:59 PM, Andy Lee wrote:

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


_______________________________________________

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


References: 
 >Pin NSButton to right side of View (From: Kam Dahlin <email@hidden>)
 >Re: Pin NSButton to right side of View (From: Andy Lee <email@hidden>)

  • Prev by Date: Re: Pin NSButton to right side of View
  • Next by Date: Re: Which flavor of objc_msgSend for NSSize return
  • Previous by thread: Re: Pin NSButton to right side of View
  • Next by thread: streaming files to browsers
  • Index(es):
    • Date
    • Thread