Re: iconForFileType broken
Re: iconForFileType broken
- Subject: Re: iconForFileType broken
- From: Douglas Davidson <email@hidden>
- Date: Mon, 7 May 2001 11:58:14 -0700
On Sunday, May 6, 2001, at 07:21 PM, Steve Gehrman wrote:
folderIcon = [[[NSWorkspace sharedWorkspace]
iconForFileType:NSDirectoryFileType] retain];
NSDirectoryFileType is, as documented, a return value for
getInfoForFile:, not an argument to iconForFileType:. The arguments for
iconForFileType: are file type strings in the sense described in
Foundation/NSHFSFileTypes.h: either extensions or else encoded HFS
types. There do appear to be some circumstances in which the
lower-level services that NSWorkspace uses return a less-specific icon
to iconForFileType: than to iconForFile:. We are working on this issue.
Douglas Davidson