Tools
Download Search CocoaTraces for Mac OS X 10.4 for easily searching in Cocoa Traces from any application supporting system services!
Site Statistics
34891 Total Views
41 Traces
41 Fragments
47 Comments
54 Tags
41 Traces
41 Fragments
47 Comments
54 Tags
Tags
audio badge category class crash dock fade file finder font gradient hack help icon indicator kqueue LoginItems menu metadata NSButton NSCell NSControl NSDictionary NSDirectoryEnumerator NSDocument NSMenu NSPopUpButton NSProgressIndicator NSScrollView NSSound NSSpeechChannel NSString NSTableColumn NSTableView NSTabView NSToolbar NSURLConnection NSURLRequest NSView NSWindow preferences readme record report SerialPort shell speech support TabBar timer tooltip wrapper xml zoom
Make a custom window frame
Tags: NSWindow, hackRelated Traces
- Easily create preferences windows (11 months)
- An NSWindow subclass for easy attaching of views to other windows (6 months)
- Flip a window just like in Dashboard (11 months)
- Fade a window in and out (11 months)
- Easy zooming for windows (11 months)
Add a new comment or fragment
Fields marked with * are mandatory.
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.