Re: copy in WebView
Re: copy in WebView
- Subject: Re: copy in WebView
- From: Kyle Sluder <email@hidden>
- Date: Sat, 13 Oct 2012 13:26:41 -0700
On Sat, Oct 13, 2012, at 01:19 PM, Andy Lee wrote:
> Unless I'm mistaken, Kyle meant the view hierarchy, not the inheritance
> hierarchy. In other words, if you go up the superview chain starting at
> the window's first responder, do you encounter your WebView?
You are correct. I was referring to the view hierarchy.
And I just realized that Gerriet is on the Mac, not on iOS, so he
doesn't need to traverse the view hierarchy to determine who first
responder is after all. He can just ask the window, as you suggest. Then
he can ask if that object is an instance of NSView, and if so send it
-isDescendantOf: to determine if it is a descendant of the WebView.
No private API required.
--Kyle Sluder
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden