Re: NSView and layers?
Re: NSView and layers?
- Subject: Re: NSView and layers?
- From: Ricky Sharp <email@hidden>
- Date: Mon, 24 Oct 2005 16:51:02 -0500
On Oct 24, 2005, at 4:08 PM, john wrote:
Yes, the overlay windows are what is in the GLChildWindowDemo. My
main issue with that is this:
When you scroll in the underlying view, how can you update the
overlay window/view to make it look like its contents are part of
the underlying view?
The only way I could think of is to manually set the NSScrollView's
NSScroller and monitor the setFloatValue: method. Then call
whatever class that needs to know, which would then check the
visible rect and update the overlay window accordingly.
But what a hack, surely there must be a better way?
Given your scroll view, you should be able to get the existing
NSScroller instance and then bind its value attribute to your
controller. Your controller could then have a dependent key set up
such that whenever that value changes, some other attribute would be
modified. Finally, your overlay window's controller could be bound
to that latter attribute. Note that this second attribute could
actually be an object which represents the state to be displayed by
your overlay.
This approach should work in cases where you have live scrolling on/off.
___________________________________________________________
Ricky A. Sharp mailto:email@hidden
Instant Interactive(tm) http://www.instantinteractive.com
_______________________________________________
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