On 11 May 2010, at 11:01, Chaitanya Pandit wrote:

> Is there any way to make CAScrollLayer to scroll to a point without animating?
> 
> I tried this just before i call scrollToPoint, but didn't work
> 
> [CATransaction begin]; 
> [CATransaction setValue: (id) kCFBooleanTrue forKey: 
> kCATransactionDisableActions];
> [CATransaction commit];

Try something like this:

[CATransaction begin];
[CATransaction setValue:[NSNumber numberWithFloat:0.0f] 
forKey:kCATransactionAnimationDuration];
[scrollLayer scrollToPoint:...];
[CATransaction commit];

Simon Wolf

Website: http://www.ottersoftware.com
Twitter: http://www.twitter.com/sgaw
iChat: [email protected]_______________________________________________

Cocoa-dev mailing list ([email protected])

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]

Reply via email to