• 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: Document-based file types and an NSMovie question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Document-based file types and an NSMovie question


  • Subject: Re: Document-based file types and an NSMovie question
  • From: Timothy Carl Buchheim <email@hidden>
  • Date: Mon, 22 Mar 2004 12:21:02 -0800

On Mar 20, 2004, at 3:21 PM, Mike Zornek wrote:

I actually have it working okay, but have a related questions. Currently I
explicitly set the "Document Types" on the target to allow for JPG or PDF.
I'm curious as to how I would allow all types that NSImage can understand
without manually entering each one?

[NSImage imageFileTypes] will give you an NSArray of the appropriate types, suitable for using as an argument to NSOpenPanel's -runModalForTypes: method. This includes both types which can be read directly by various NSImageRef subclasses, as well as those types which the installed file conversion services can convert.

If you only want files which can be read directly by NSImageRef subclasses, and not those which may be converted by services, use [NSImage imageUnfilteredFileTypes]


Similarly I want to create a
document-based Movie Player .. So it should be able to open all types that
QuickTime can.

[NSMovie movieUnfilteredFileTypes] only returns the extensions "mov" and "MOV", and the HFS file type "mov" according to Apple's documentation. And they don't mention any +movieFileTypes method.

Perhaps there's something in the QuickTime API.



--
Tim Buchheim System Administrator
Computer Science Department Phone: (909) 607-3485
Harvey Mudd College Fax: (909) 607-8364
1250 N Dartmouth Ave E-mail: email@hidden
Claremont, CA 91711 http://www.cs.hmc.edu/~tcb/
_______________________________________________
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.


  • Follow-Ups:
    • Re: Document-based file types and an NSMovie question
      • From: "Douglas A. Welton" <email@hidden>
References: 
 >Document-based file types and an NSMovie question (From: Mike Zornek <email@hidden>)

  • Prev by Date: Re: Accessing default NSTextView contextual menu
  • Next by Date: Re: Graphite examples ??
  • Previous by thread: Document-based file types and an NSMovie question
  • Next by thread: Re: Document-based file types and an NSMovie question
  • Index(es):
    • Date
    • Thread