• 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: NSView alphaValue animation on 10.5
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSView alphaValue animation on 10.5


  • Subject: Re: NSView alphaValue animation on 10.5
  • From: Kyle Sluder <email@hidden>
  • Date: Wed, 8 Sep 2010 13:00:38 -0700

On Wed, Sep 8, 2010 at 12:32 PM, Alexander Cohen <email@hidden> wrote:
> I've got a lot of code that depends on 10.6's use of NSView's animator and setAlphaValue for showing and hiding animations. Now, i need to bring this to 10.5. On 10.5, to animate the alphaValue, i learnt that the NSView needs to be backed by a layer. I tried doing that and it created mayhem, so i don't think i can go that route. I could use NSViewAnimation but that would create 2 sets of code and i'd rather just stick with [[view animator] setAlphaValue:val]. Does anyone have any idea how to get something working without having to if/else all these calls?

NSViewAnimation is still supported on 10.6, though it doesn't do
everything the -animator proxy does. So you can port your code to use
NSViewAnimation, remove the use of -animator, and only maintain one
codebase.

--Kyle Sluder
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please 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: 
 >NSView alphaValue animation on 10.5 (From: Alexander Cohen <email@hidden>)

  • Prev by Date: Re: NSTableView/NSOutlineView variable row height code has detected re-entry.
  • Next by Date: Re: NSNumber compare: Giving Unexpected Results
  • Previous by thread: NSView alphaValue animation on 10.5
  • Next by thread: some no-op animation options?
  • Index(es):
    • Date
    • Thread