• 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: Disabling Implicit Animations
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Core Animation: Disabling Implicit Animations


  • Subject: Re: Core Animation: Disabling Implicit Animations
  • From: Chilton Webb <email@hidden>
  • Date: Tue, 15 Jul 2008 08:55:25 -0500

Hi,

I am in the same boat. I have an NSTextView inside an NSScrollView that shows the default transitions when new text is added, or when the scroll view is resized. I don't want that.

However, I can't figure out where to override the default transition.

I subclassed both the NSTextView and the NSScrollView it's contained in, and put this in the subclass:

+ (id)defaultAnimationForKey:(NSString *)key
{
 	NSLog(@"Animation Keys Are: %@\n\n",key);
	return nil;
}

... I noticed that this function is only called once (when the nib is loaded), and the transitions still happen. What am I doing wrong?

Thank you!
-Chilton Webb

On Jun 24, 2008, at 9:52 PM, Scott Anguish wrote:

at the core animation level...

three options

1: disable actions in a explicit transaction and do everything inside that transaction

http://developer.apple.com/documentation/Cocoa/Conceptual/CoreAnimation_guide/Articles/Transactions.html#/ /apple_ref/doc/uid/TP40006096-SW9

or 2:http://developer.apple.com/documentation/Cocoa/Conceptual/CoreAnimation_guide/Articles/Actions.html#/ /apple_ref/doc/uid/TP40006095-SW9

basically, set the action to NSNull (listing 3)

3: override the default action method and return NSNull unless some condition you've already specified is true.

same chapter I think.


On Jun 24, 2008, at 6:11 PM, Wil Gieseler wrote:

Hello, a (hopefully) quick question. I have a view which I would like to use some Core Animation transitions on, so I've set it to [theContentView setWantsLayer:YES]. However, this causes all of its subviews to automatically gain fade transitions (which is the expected behavior). However, some of the subviews are a WebView and an IKImageBrowserView which apparently do not play nice with the automatic transitions and create some ugly funky behavior (the image browser view does not display anything at all). I simply want to disable ALL implicit transitions/animations and only animate when I explicitly tell the view to. How is this best accomplished?

_______________________________________________

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

_______________________________________________

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


  • Prev by Date: Re: how to add modal dialog once application begin to run
  • Next by Date: Re: Toolbar code in separate Controller?
  • Previous by thread: Re: IBPlugin cannot load
  • Next by thread: Disc Burns, but is unreadable
  • Index(es):
    • Date
    • Thread