• 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: 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

  • Follow-Ups:
    • Re: copy in WebView
      • From: "Gerriet M. Denkmann" <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>)
 >Re: copy in WebView (From: Andy Lee <email@hidden>)

  • Prev by Date: Re: copy in WebView
  • Next by Date: filtering an array of entities using NSPredicate
  • Previous by thread: Re: copy in WebView
  • Next by thread: Re: copy in WebView
  • Index(es):
    • Date
    • Thread