• 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
Re: NSImage file types
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


References: 
 >NSImage file types (From: Peter Ammon <email@hidden>)

  • Prev by Date: NSImage file types
  • Next by Date: Re: More on: converting C-strings to NSString
  • Previous by thread: NSImage file types
  • Next by thread: KeyDown event
  • Index(es):
    • Date
    • Thread