add a placeholder magnet link icon

This commit is contained in:
Mitchell Livingston 2009-11-26 02:26:51 +00:00
parent 565d87f8c4
commit ab4ffba987
1 changed files with 4 additions and 0 deletions

View File

@ -555,6 +555,10 @@ int trashDataFile(const char * filename)
- (NSImage *) icon
{
if ([self isMagnet])
return [NSImage imageNamed: NSImageNameNetwork]; //placeholder
#warning replace 'fldr' stuff with NSImageNameFolder on 10.6
if (!fIcon)
fIcon = [[[NSWorkspace sharedWorkspace] iconForFileType: [self isFolder] ? NSFileTypeForHFSTypeCode('fldr')
: [[self name] pathExtension]] retain];