• 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: How to create Custom Knobs with Sprite animation ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >How to create Custom Knobs with Sprite animation ? (From: David Paulicke <email@hidden>)
 >Re: How to create Custom Knobs with Sprite animation ? (From: Graham Cox <email@hidden>)
 >Re: How to create Custom Knobs with Sprite animation ? (From: Graham Cox <email@hidden>)

  • Prev by Date: Re: NSOutlineView threading problem
  • Next by Date: Re: launching finder with optionschi
  • Previous by thread: Re: How to create Custom Knobs with Sprite animation ?
  • Next by thread: Re: How to create Custom Knobs with Sprite animation ?
  • Index(es):
    • Date
    • Thread