Logo

Saturday, November 4, 2006

StyledWindow

A flexible NSWindow subclass.

Download

Note: it uses Chad Weider’s extremely convenient CTGradient class.

Update: Default values are now set to something closer to Apple’s Polished Metal Window. Added some comments to AppController.m awakeFromNib method - look there to see how to set things up.

posted by ganyard at 4:16 pm  

6 Comments »

  1. […] I found this information when reading about StyledWindow at bithaus. Then I used it to capture one of the icons on my desktop. I assure you the background was quite busy - not white. Go ahead and give it a try. […]

    Pingback by Capture Desktop Icons with Spacebar | NSLog(); — November 5, 2006 @ 1:11 pm

  2. Downloaded, and am indeed enjoying… :-)

    Comment by Duncan Campbell — November 5, 2006 @ 1:43 pm

  3. Styling NSWindows in Cocoa…

    Bithaus has a handy little chunk of Objective C source code up that provides programmatic capabilities to styling NSWindows. It’s modeled on Matt Gemmell’s snazzy TunesWindow class (which I use in iRooster, by the by), but appears to handle all of it…

    Trackback by Aaron's UI Design Blog — November 28, 2006 @ 1:27 pm

  4. […] Bithaus » StyledWindow […]

    Pingback by carpeaqua » Blog Archive » Bithaus » StyledWindow — December 20, 2006 @ 6:51 pm

  5. Is there any way to get the unified look for the title bar, yet keep the square edges on the bottom corners?

    Comment by JD — December 14, 2007 @ 2:50 pm

  6. Not without doing a fair bit more drawing yourself.

    IOW: It’s not a capability of this subclass.

    Comment by ganyard — December 14, 2007 @ 4:05 pm

RSS feed for comments on this post. TrackBack URI

Leave a comment

Copyright © Bithaus