• 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: Trouble with standardWindowButton
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Trouble with standardWindowButton


  • Subject: Re: Trouble with standardWindowButton
  • From: Kevin Ballard <email@hidden>
  • Date: Wed, 17 Mar 2004 15:27:36 -0500

On Mar 17, 2004, at 10:12 AM, Casey Fleser wrote:

Once I get the normal windows buttons working, I was hoping to shrink them down a bit much like the buttons in iTunes minimized. I'd tried change the size of the button via it's cell's setControlSize. This had no affect for either NSSmallControlSize or NSMiniControlSize. Does anyone know whether iTunes is using a custom solution or standard APIs?

iTunes is using a custom solution. If you look in its Resources folder, you'll find a .rsrc file. If you poke around in the PICT resources, you can find the buttons there.

Finally, I see that the iTunes window buttons respond to changing the appearance from Blue to Graphite. In the unhappy event that I have to roll my own solution can somehow point me in the right direction on how my app is notified of a change in themes so I can alter the look of my controls appropriately?

Yep. When the theme changes, a distributed notification is sent with the name AppleAquaColorVariantChanged

--
Kevin Ballard
email@hidden
http://www.tildesoft.com
http://kevin.sb.org
_______________________________________________
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: 
 >Trouble with standardWindowButton (From: Casey Fleser <email@hidden>)

  • Prev by Date: Re: Making an NSWindow Resizable
  • Next by Date: Proper way to force apps to quit?
  • Previous by thread: Trouble with standardWindowButton
  • Next by thread: Newbie: fileExistsAtPath
  • Index(es):
    • Date
    • Thread