Re: copy in WebView
Re: copy in WebView
- Subject: Re: copy in WebView
- From: Andy Lee <email@hidden>
- Date: Sat, 13 Oct 2012 16:19:34 -0400
On Oct 13, 2012, at 3:22 PM, Gerriet M. Denkmann <email@hidden> wrote:
>
> On 14 Oct 2012, at 01:46, Kyle Sluder <email@hidden> wrote:
>
>> On Sat, Oct 13, 2012, at 09:47 AM, Gerriet M. Denkmann wrote:
>>> Well, there is one small problem:
>>> This line:
>>> if ( [ targetForCopy isKindOfClass: NSClassFromString (@"WebHTMLView") ] ) then do my own stuff...
>>> has this undocumented WebHTMLView.
>>> So if Apple changes WebKit to use WebNewAndBetterHTMLView then my code
>>> will break.
>>> But I guess (and hope) that this is not too likely.
>>
>> Could you instead broaden your test to "my WebView or any of its
>> descendants is first responder?"
>
> The superclass of the undocumented WebHTMLView is NSResponder.
> Don't know how it relates to WebView.
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?
--Andy
_______________________________________________
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