• 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
CA -animator animation only works the first time
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

CA -animator animation only works the first time


  • Subject: CA -animator animation only works the first time
  • From: Erg Consultant <email@hidden>
  • Date: Tue, 28 Apr 2009 14:49:23 -0700 (PDT)

I have two standard Cocoa objects in my window that I animate using CA's AppKit -animator method. When my nib loads, I get the original NSRects of the two items by sending them the -frame message. I then recalc the rects to move the two views offscreen.

When I show my window, I animate both views back into the window thusly:

[ [ oudWindowIconView animator ] setFrame:destGameIconRect ];

[ [ oudWinowLogoImage animator ] setFrame:destLogoRect ];

This works fine - the first time. The next time I show my window and the same code runs, the two items are not visible in the window.

The dest rects of the reanimated views are the same as the original view rects when the nib loads.

So why does the animation work only the first time?

Thanks,

Erg




_______________________________________________

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

  • Follow-Ups:
    • Re: CA -animator animation only works the first time
      • From: Benjamin Stiglitz <email@hidden>
  • Prev by Date: Re: Core Data Fetches + Transient Properties + NSPredicateEditor = Sadness
  • Next by Date: NSXMLParser and NSDocument
  • Previous by thread: Re: Cocoa-dev Digest, Vol 6, Issue 641
  • Next by thread: Re: CA -animator animation only works the first time
  • Index(es):
    • Date
    • Thread