Now even more Stylish!
(Alright, I found something that was broken that I had overlooked in my implementation. Thanks to Matt Gemmell for helping me resolve the error of my ways.)
StyledWindow now plays properly with Toolbars.
(Alright, I found something that was broken that I had overlooked in my implementation. Thanks to Matt Gemmell for helping me resolve the error of my ways.)
StyledWindow now plays properly with Toolbars.
Pixie is a great tool. If you’re interested in using StyledWindow to recreate existing Polished Metal implementations here are some values for you.
iWeb:
[styledWindow setBorderStartColor:[NSColor colorWithDeviceWhite:0.7686 alpha:1.0]];
[styledWindow setBorderEndColor:[NSColor colorWithDeviceWhite:0.5922 alpha:1.0]];
[styledWindow setBorderEdgeColor: [NSColor colorWithDeviceWhite:0.2510 alpha:1.0]];
iMovie HD & iDVD:
[styledWindow setBorderStartColor:[NSColor colorWithDeviceWhite:0.7686 alpha:1.0]];
[styledWindow setBorderEndColor:[NSColor colorWithDeviceWhite:0.5922 alpha:1.0]];
[styledWindow setBorderEdgeColor:[NSColor colorWithDeviceWhite:0.2549 alpha:1.0]];
iPhoto:
[styledWindow setBorderStartColor:[NSColor colorWithDeviceWhite:0.7686 alpha:1.0]];
[styledWindow setBorderEndColor:[NSColor colorWithDeviceWhite:0.5922 alpha:1.0]];
[styledWindow setBorderEdgeColor:[NSColor colorWithDeviceWhite:0.4039 alpha:1.0]];
iTunes 7:
[styledWindow setBorderStartColor:[NSColor colorWithDeviceWhite:0.7725 alpha:1.0]];
[styledWindow setBorderEndColor:[NSColor colorWithDeviceWhite:0.5882 alpha:1.0]];
[styledWindow setBorderEdgeColor:[NSColor colorWithDeviceWhite:0.2510 alpha:1.0]];
You can use the Demo App to figure out the heights of the borders.
Being new to this whole blogging thing… I’m going to try make frequent posts. Attempt to establish the habit of putting stuff up or at least writing about putting stuff up.
Those that know me know that talking about stuff isn’t usually a problem, so I’ll just need to work on the discipline of writing about stuff.
But this will really just be a post about posting… not quite. I forgot I had something to share.
And a little workflow you might find useful. I got annoyed about the number of steps required to get an Xcode project posted, so I built an Automater workflow: “Archive Xcode Project”.
Just put it in ~/Library/Workflows/Applications/Finder/ (create the path if needed) and you can control-click on an Xcode Project folder and get a nice clean archive ready for distribution. It strips .svn dirs, Build dirs and [username].* foo from your projects and then zips. Nice clean archives for sharing with friends and family.
An Automator Workflow to make your Xcode Projects (or anything else I guess) ready to share. Install at ~/Library/Workflows/Applications/Finder/ (create the path if needed).
Update: rev’d to remove .DS_Store files and “build” (in addition to “Build”) folders
Ok, that’s pretty cheap.
Everyone loves the glossy table top reflections in iChat’s video conferencing. Right? Ok, you have to at least admit that you like showing it to your Windows using associates.
So here’s my contribution to virtualizing real life: a category on NSImage that provides you with a reflection of an image. And it comes with a spiffy Demo App so you can fine tune it to get just the right amount of reflection without having to recompile every time.
A Category on NSImage to produce a reflection, with the ability to set how much of the reflection is shown.
Note: it uses Chad Weider’s extremely convenient CTGradient class.
NSWindow. Very flexible stuff. It’s used *everywhere*. I mean it, everywhere, look for yourself, hit cmd-shift-4 and then press the spacebar. Move that camera icon around, over Desktop icons, Dock items, Menu Extras, etc, etc. Everywhere.
Pretty versatile.
But most of us still just use what IB provides. Matt Gemmell released TunesWindow a while back and it provided a great solution to making something a bit more unique. I just thought it could be even more flexible so I built StyledWindow based on it. (thanks Matt!)
And since John Gruber delivered the obituary on the Apple HIG at C4 (and everyone is talking about it: Daniel Jalkut, Uli Kusterer, Michael Tsai, Scott Stevenson, et al), it seems time to release this so everyone can now define their own HIG.
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.
So here it is, the inaugural post for a new site. I’ve had this domain for years, finally it’s time to do something with it.
Seemed like something interesting to do on my birthday.
Copyright © Bithaus