File: programming/cocoa/

//  UKCustomWindowFrame.h
//  HoratioSings
//  Created by Uli Kusterer on 09.06.05.
//  Copyright 2005 M. Uli Kusterer. All rights reserved.
#import <Cocoa/Cocoa.h>
#import "NSGrayFrame.h" // Private Apple header! Dangerous!
// To turn all brushed metal windows into windows with a custom pattern,
// use a call like the following early before any such windows are created:
//  [UKCustomWindowFrame installCustomWindowFrame];
// By default the windows will be dark gray. You can fill with a tiled image with a call like:
//  [UKCustomWindowFrame setCustomWindowColor: [NSColor colorWithPatternImage: [NSImage imageNamed: @"wood125"]] ];
// Or alternately have an image scaled to the window's size with:
//  [UKCustomWindowFrame setCustomWindowImage: [NSImage imageNamed: @"wood125"] ];
// *** Can't have ivars if we're to still be able to pose as NSGrayFrame!
// Color / pattern to fill window with.
// Image to scale over complete window. Overrides color.

This code uses the PclZip Zip File reading code, which is subject to the GNU LGPL. It also uses the GeSHi syntax highlighter, subject to the GPL. Ask if you want this for your own web site, it's free.