Re: NSImage file types
Re: NSImage file types
- Subject: Re: NSImage file types
- From: "John C. Randolph" <email@hidden>
- Date: Tue, 23 Oct 2001 16:22:33 -0700
On Tuesday, October 23, 2001, at 04:03 PM, Peter Ammon wrote:
My application uses NSImage to display files and, as such, it can
handle any file that NSImage can. Is there a way to specify that in my
Info.plist file, or would I have to enumerate every image type that
NSImage can display? And if it's the latter, where can I get a list of
those types?
You can get that list by calling [NSImage imageFileTypes]. It returns
an array of strings. You can pass that array to the open panel in
-runModalForTypes:.
-jcr
"I fear all we have done is to awaken a sleeping giant and fill him with
a terrible resolve." -Admiral Isoroku Yamamoto, Dec 7, 1941.