• 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: Amilcar Meneses Viveros <email@hidden>
  • Date: Mon, 22 Mar 2004 09:00:24 -0600 (CST)

> #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 thatQuickTime can.
>
> #2 With my document-based Image Viewer application I use the following
> bitof code to setup my image in loadDataRepresentation:ofType:
>
> [self setMyImage:[[NSImage alloc] initWithData: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 Ican get it from the open panel here. Any suggestions?

Maybe you could read the article
"Working With Bitmap Images; Document-Based Application Redux"
by Michael Beam

http://www.macdevcenter.com/pub/a/mac/2002/04/19/cocoa.html

Regards
Amilcar
_______________________________________________
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: NSKeyedUnarchiver replaces NSStrings
  • Next by Date: Umlaute in NSString
  • Previous by thread: Re: Document-based file types and an NSMovie question
  • Next by thread: nextKeyView, initialFirstResponder, NSView
  • Index(es):
    • Date
    • Thread