• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Using iconForFileType: to get an icon.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Using iconForFileType: to get an icon.


  • Subject: Using iconForFileType: to get an icon.
  • From: Rosyna <email@hidden>
  • Date: Fri, 10 Jan 2003 13:57:09 -0800

I'm trying to use NSWorkspace's iconForFileType: method to get the generic application icon. I've tried [[NSWorkspace sharedWorkspace] iconForFileType:@"APPL"] and [[NSWorkspace sharedWorkspace] iconForFileType:@"app"] but both return the generic document icon. Is this just not possible using NSWorkspace (since nothing may or should claim APPL or app)? If it is, how can I convert an IconRef into an NSImage?
--


Sincerely,
Rosyna Keller
Technical Support/Holy Knight/Always needs a hug

Unsanity: Unsane Tools for Insanely Great People
---

Please include any previous correspondence in replies, it helps me remember what we were talking about. Thanks.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
  • Prev by Date: Re: NSTimer or double to int cast (Bug?)
  • Next by Date: NSMovie/NSMovieView problem
  • Previous by thread: Re: Plugging into iSync?
  • Next by thread: NSMovie/NSMovieView problem
  • Index(es):
    • Date
    • Thread