Swapping the contents of views
Swapping the contents of views
- Subject: Swapping the contents of views
- From: email@hidden
- Date: Sun, 25 Jan 2004 14:35:46 -0800
Hello Nice Cocoa List People:
Sorry if this a stupid RTFM question, but...
I have an application that needs to display different types of media in
the same view (e,g, first a JPEG, then a QuickTime movie, then maybe an
EPS file, etc.). I know how to get an image to display in an
NSImageView, and how to display a movie in an NSMovieView etc.
What I want to know is how I can replace what's drawn on-screen in the
same area. The area would be the same size, so I assume it's a question
of creating offscreen panels containing each of the views I need (i.e.
and NSImageView, an NSMovieView, etc.), intializing the panel with the
data, then getting the contents of the panel to draw in the other view.
Am I on the right track? Could some kind soul point me to some sample
code somewhere, or provide a code snippet.
Any help greatly appreciated.
John
_______________________________________________
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.