Re: How to create Custom Knobs with Sprite animation ?
Re: How to create Custom Knobs with Sprite animation ?
- Subject: Re: How to create Custom Knobs with Sprite animation ?
- From: Jens Alfke <email@hidden>
- Date: Mon, 16 Jun 2008 09:07:55 -0700
My Question was : How to achieve that via Cocoa . Rather in Code i
just need a Guidline or a Plan what i should look for , where to
start , general things , what Concepts i should look for.
Read the conceptual documentation on event handling, specifically on
how to handle mouse events in a view.
Then look for some AppKit sample code that demonstrates using a custom
view that handles mouse events; I don't remember any offhand, but I
know there are several examples like this. Read the code, run it, play
with it and make it do some new things until you feel you understand
what it's doing.
A tip: You can simplify your drawing code by making your view subclass
NSImageView. Then the base class will take care of all the drawing;
all you have to do is call [self setImage: [NSImage imageNamed: name]]
where 'name' is the name of the image corresponding to the current
state of the knob.
—Jens
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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