• 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: copy in WebView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: copy in WebView
      • From: Kyle Sluder <email@hidden>
References: 
 >copy in WebView (From: "Gerriet M. Denkmann" <email@hidden>)
 >Re: copy in WebView (From: Kyle Sluder <email@hidden>)
 >Re: copy in WebView (From: Kyle Sluder <email@hidden>)
 >Re: copy in WebView (From: "Gerriet M. Denkmann" <email@hidden>)
 >Re: copy in WebView (From: "Gerriet M. Denkmann" <email@hidden>)
 >Re: copy in WebView (From: Kyle Sluder <email@hidden>)
 >Re: copy in WebView (From: "Gerriet M. Denkmann" <email@hidden>)
 >Re: copy in WebView (From: "Gerriet M. Denkmann" <email@hidden>)
 >Re: copy in WebView (From: Kyle Sluder <email@hidden>)
 >Re: copy in WebView (From: "Gerriet M. Denkmann" <email@hidden>)

  • Prev by Date: Re: copy in WebView
  • Next by Date: Re: copy in WebView
  • Previous by thread: Re: copy in WebView
  • Next by thread: Re: copy in WebView
  • Index(es):
    • Date
    • Thread