float radians = DegreesToRadians((h*30+m/2));

CATransform3D hourTransform;

hourTransform = CATransform3DMakeRotation(radians, 0, 0, 1.0 );

[hourHandLayer setTransform:hourTransform];


I have a method called on a timer every second and the hands update from it.


On Mon, Dec 7, 2009 at 2:37 PM, Kyle Sluder <[email protected]> wrote:

> On Mon, Dec 7, 2009 at 11:32 AM, Eric E. Dolecki <[email protected]>
> wrote:
> > I don't see a CGPathCreateImmutable() anywhere in the docs.
>
> Sorry, I was thinking in NSBezierPath terms.
>
> > I did solve my problem though.
>
> How did you do that?  Did you do what I recommended, something else, or
> both?
>
> --Kyle Sluder
>



-- 
http://ericd.net
Interactive design and development
_______________________________________________

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