• 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: Core Animation: How to swicth off all implicit animations?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Core Animation: How to swicth off all implicit animations?


  • Subject: Re: Core Animation: How to swicth off all implicit animations?
  • From: Wolf Hauser <email@hidden>
  • Date: Sun, 23 Nov 2008 02:14:15 +0100

Hi Matt,

thank you for your help.

[CATransaction begin];
[CATransaction setValue:(id)kCFBooleanTrue
                forKey:kCATransactionDisableActions];
// Your code here
[CATransaction commit];

I had tried to use this, however I was not sure where to put it. My problem is with the "Your code here". In the whole resize procedure, no code is involved. The views are resized automatically when the user resizes the window in which they reside. What I tried now was to overwrite the setFrame: method of the view that contains the background layer. For "Your code here", I call [super setFrame:frame]. Unfortunately, this does not prevent the WebView from fading in and out.


See also:
http://developer.apple.com/documentation/Cocoa/Conceptual/CoreAnimation_guide/Articles/Transactions.html
http://www.cocoabuilder.com/archive/message/cocoa/2008/6/25/211097

This thread talks exactly about my problem; thank you for pointing me at it. Nevertheless, there is no real solution provided, or is it? They suggest to 'simply' overwrite +(id)defaultAnimationForKey: (NSString*)key and to return nil. But in which class do I have to overwrite it? I have overwritten it in (a) my subclass of NSView, which is supposed to do the custom drawing, (b) in the NSView that contains this view and the WebView and (c) finally I even subclassed the WebView to overwrite it there -- but the fading effects are still there...


What I was hoping to find is a possibility to switch the effects off completely. Not only for specific classes, where I have no influence on subviews, not only for one specific transaction, where I do not exactly know when it is triggered, but entirely, completely, off. For all objects and forever :-)

Wolf

_______________________________________________

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: 
 >Core Animation: How to swicth off all implicit animations? (From: Wolf Hauser <email@hidden>)
 >Re: Core Animation: How to swicth off all implicit animations? (From: Matt Long <email@hidden>)

  • Prev by Date: Re: Cocoa "canvas" view ?
  • Next by Date: How do I get a CGContextRef?
  • Previous by thread: Re: Core Animation: How to swicth off all implicit animations?
  • Next by thread: Re: Core Animation: How to swicth off all implicit animations?
  • Index(es):
    • Date
    • Thread