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 (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]