diff -r 000000000000 -r 5cab3034d3a1 MYWindowUtils.m --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/MYWindowUtils.m Wed Sep 02 08:41:25 2009 -0700 @@ -0,0 +1,27 @@ +// +// MYWindowUtils.m +// Murky +// +// Created by Jens Alfke on 5/5/09. +// Copyright 2009 Jens Alfke. All rights reserved. +// + +#import "MYWindowUtils.h" + + +@implementation NSWindow (MYUtilities) + + +- (void) my_setTitleBarIcon: (NSImage*)icon +{ + NSURL *url = nil; + if( icon ) { + icon = [[icon copy] autorelease]; + [icon setSize: NSMakeSize(16,16)]; + url = [NSURL fileURLWithPath: @"/System/XXX"]; + } + [self setRepresentedURL: url]; + [[self standardWindowButton:NSWindowDocumentIconButton] setImage: icon]; +} + +@end