Re: Swapping the contents of views
Re: Swapping the contents of views
- Subject: Re: Swapping the contents of views
- From: Brian Ganninger <email@hidden>
- Date: Sun, 25 Jan 2004 16:57:36 -0600
Why not use a tab view without tabs visible (tabless borderless style)
and have each view type in a separate tab so that when the file type
loading changes you programmatically change tab (-
(void)selectTabViewItemWithIdentifier:(id)identifier ) [set identifier
per tab in IB and just pass @"yourTabNameHere" in the previous method]
and load the file in its appropriate viewer.
HTH,
brian
On Jan 25, 2004, at 4:35 PM, email@hidden wrote:
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.
_______________________________________________
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.