• 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
background of NSButton and NSPopUpButton
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

background of NSButton and NSPopUpButton


  • Subject: background of NSButton and NSPopUpButton
  • From: Don Willems <email@hidden>
  • Date: Thu, 25 Nov 2004 11:20:46 +0100

Hi,

I would like to change the background of an NSButton and NSPopUpButton and I'm wonderin how to do this. I can imagine several ways of doing this, but don't know what the best way is.
The controls should look like the buttons and popupbuttons in the 'bar' above the scrollpane in XCode's editor.
I've never tried this before and maybe there is a simple solution which I don't see.


The first solution I thought of was:
- use an NSView subclass (with custom background) as the superview of the NSButtons and NSPopUpButtons which have no border.


But this solution is not very generic.
Now I'm thinking of subclassing NSButtonCell and NSPopUpButtonCell, but I'm not sure how to go about that.


What do you think,

Don

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: background of NSButton and NSPopUpButton
      • From: Michael Becker <email@hidden>
  • Prev by Date: Re: What's wrong with this code?
  • Next by Date: Receiving app launch notification in command line tool
  • Previous by thread: Re: What's wrong with this code?
  • Next by thread: Re: background of NSButton and NSPopUpButton
  • Index(es):
    • Date
    • Thread