• 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: compositing views into one window
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: compositing views into one window


  • Subject: Re: compositing views into one window
  • From: Alex Reynolds <email@hidden>
  • Date: Fri, 3 Dec 2004 11:07:45 -0500

My NSWindow is a captured display.

Let's say I have several NSViews:

1. WebView instance
2. NSView instance with some text in it that will scroll across the screen
3. NSView instance that contains other text


I would like the WebView to be the backdrop, with the second and third instances to lie on top of the webview. The second instance may have transparency effects. I'd like to pour all of this into an NSWindow (display).

Right now I can capture displays and feed the WebView into them. That works fine. I'd like to add views 2 and 3 (or more, in general).

I guess I'm asking for the general technique of how this is done, like an NSSubView class (?) or a subview method of NSView?

Thanks,
Alex

On Dec 3, 2004, at 10:43 AM, Ricky Sharp wrote:


On Friday, December 03, 2004, at 09:30AM, Alex Reynolds <email@hidden> wrote:


How does one generally make a composite or layering of NSView instances
into one NSWindow instance?

What are you specifically asking for?

Assuming you are talking about custom NSView instances here, you basically want to ensure you do the right thing in each class regarding what isOpaque will return. You also want to ensure that you properly embed views (as subviews) when necessary. You don't want to have overlapping sibling views.

--
Rick Sharp
Instant Interactive(tm)

_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: compositing views into one window
      • From: Guy English <email@hidden>
References: 
 >compositing views into one window (From: Alex Reynolds <email@hidden>)
 >Re: compositing views into one window (From: Ricky Sharp <email@hidden>)

  • Prev by Date: Re: IBPalettes
  • Next by Date: Re: Printing Backgrounds With A WebView
  • Previous by thread: Re: compositing views into one window
  • Next by thread: Re: compositing views into one window
  • Index(es):
    • Date
    • Thread