Make a custom window frame

Tags: NSWindow, hack

intui — 2007/07/30

This is a little hack (originally part of my MovieTheatre sample code) that uses poseAsClass: and some class-dump-generated headers for a few of Apple's private classes to change the background and text color of a brushed metal window.

Note that this is a completely undocumented hack, and not recommended for production code. USE AT YOUR OWN RISK. If you just want a different color or pattern for your metal windows, use NSWindow's setBackgroundColor: method instead.



Add a new comment or fragment

Fields marked with * are mandatory.


User Name

Fragment (zip files only)

Mac OS X Version

License

Screenshot

Comment * Help

Password (if you plan to edit this entry later)