• 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: Custom buttons
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Custom buttons


  • Subject: Re: Custom buttons
  • From: Oliver Cameron <email@hidden>
  • Date: Sun, 20 Jun 2004 18:18:48 +0100

Using setImage: and not using a border should work fine.

Thanks,
Oliver
On 20 Jun 2004, at 18:02, Marco Michieli wrote:

I'm trying to figure out how to create nice custom buttons as Safari/iTunes custom buttons; I don't need any special behaviour, but I would like to use a different shape/image then standard buttons.

MenuMadness.pbproj example shows how to create buttons from code, but I can't figure out how to set a different image for buttons.

There's any example about that? I'm supposed to subclass NSButton? or NSButtonCell? which methods must be overridden by NSButton/NSButtonCell subclasses (if that is needed to create custom buttons)?

Thanks for your help

Ciao

Marco
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


References: 
 >Custom buttons (From: Marco Michieli <email@hidden>)

  • Prev by Date: NSButton behavior
  • Next by Date: Re: Some Questions...
  • Previous by thread: Custom buttons
  • Next by thread: Re: Custom buttons
  • Index(es):
    • Date
    • Thread