Re: Where did the icon come from?
Re: Where did the icon come from?
- Subject: Re: Where did the icon come from?
- From: John Joyce <email@hidden>
- Date: Fri, 16 Jul 2010 16:36:31 -0500
On Jul 16, 2010, at 4:28 PM, Eric Gorr wrote:
> Is there a unix tool to which I can pass a file and have it tell me where the icon for the file is coming from?
>
> Thank you._______________________________________________
>
Also see NSWorkspace Class Reference
iconForFile:
Returns an image containing the icon for the specified file.
- (NSImage *)iconForFile:(NSString *)fullPath
Parameters
fullPath
The full path to the file.
Return Value
The icon associated with the file.
Discussion
The returned image has an initial size of 32 pixels by 32 pixels.
Availability
• Available in Mac OS X v10.0 and later.
See Also
• – getInfoForFile:application:type:
• – iconForFileType:
• – iconForFiles:
Related Sample Code
• DesktopImage
• DictionaryController
• SourceView
• SpotlightAPI
• Spotlighter
Declared In
NSWorkspace.h
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden