Changed -[MYDirectoryEvent relativePath] to work on standardised paths, in case symlinks are used. Fixes issue #28 in Murky.
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];