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

Re: Swapping the contents of views


  • Subject: Re: Swapping the contents of views
  • From: John Randolph <email@hidden>
  • Date: Mon, 26 Jan 2004 13:46:46 -0800

On Jan 25, 2004, at 2:35 PM, email@hidden wrote:

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.).

[snippage]

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.

It's rather simpler than that. In this situation, just use an NSTabView with the tabs hidden.

-jcr

John C. Randolph <email@hidden> (408) 974-8819
Sr. Cocoa Software Engineer,
Apple Worldwide Developer Relations
http://developer.apple.com/cocoa/index.html
_______________________________________________
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.

References: 
 >Swapping the contents of views (From: email@hidden)

  • Prev by Date: Re: Disabling_Expose_for_some_windows,_some_day?
  • Next by Date: Re: Need help with SQLite
  • Previous by thread: Re: Swapping the contents of views
  • Next by thread: [NSBezierPath bezierpath]
  • Index(es):
    • Date
    • Thread