• 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
Swapping the contents of views
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Swapping the contents of views
      • From: John Randolph <email@hidden>
    • Re: Swapping the contents of views
      • From: Brian Ganninger <email@hidden>
  • Prev by Date: [SOLVED] quit AE not called on a scriptable app
  • Next by Date: Re: Collapsing/expanding NSSplitView
  • Previous by thread: Re: Collapsing/expanding NSSplitView
  • Next by thread: Re: Swapping the contents of views
  • Index(es):
    • Date
    • Thread