Document-based file types and an NSMovie question
Document-based file types and an NSMovie question
- Subject: Document-based file types and an NSMovie question
- From: Mike Zornek <email@hidden>
- Date: Sat, 20 Mar 2004 18:21:41 -0500
#1 I'm working on a simple Document-based Cocoa application that will allow
a user to choose File >> Open, select an image, and then view it.
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? Similarly I want to create a
document-based Movie Player .. So it should be able to open all types that
QuickTime can.
#2 With my document-based Image Viewer application I use the following bit
of code to setup my image in loadDataRepresentation:ofType:
[self setMyImage:[[NSImage alloc] initWith
Data:data]];
I don't see a way I can do this with NSMovie since there is not a similar
initWithData method. I can of course use a file:// URL but don't see how I
can get it from the open panel here. Any suggestions?
~ Mike
-----
Mike Zornek
Web Designer, Media Developer, Programmer and Geek
Personal site: <
http://MikeZornek.com>
New Project: <
http://WebDevWiki.com>
_______________________________________________
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.