10.6 compatibility: Fix some new compiler warnings, and work around apparent regressions in NSTask and -stringByStandardizingPath.
5 // Created by Jens Alfke on 5/5/09.
6 // Copyright 2009 Jens Alfke. All rights reserved.
9 #import "MYWindowUtils.h"
12 @implementation NSWindow (MYUtilities)
15 - (void) my_setTitleBarIcon: (NSImage*)icon
19 icon = [[icon copy] autorelease];
20 [icon setSize: NSMakeSize(16,16)];
21 url = [NSURL fileURLWithPath: @"/System/XXX"];
23 [self setRepresentedURL: url];
24 [[self standardWindowButton:NSWindowDocumentIconButton] setImage: icon];