• 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: selected image in webview
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: selected image in webview


  • Subject: Re: selected image in webview
  • From: Jens Alfke <email@hidden>
  • Date: Tue, 05 Jul 2011 11:18:25 -0700

On Jul 5, 2011, at 10:38 AM, Amy Heavey wrote:

> It is for Mac OS (coredata app), but all the documentation seems to refer to Javascript?

It’s a cross-language API, but there are Objective-C bindings in WebKit. Read the section "Using the Document Object Model from Objective-C” in the WebKit Programming Guide.

The method to start with is -[WebFrame DOMDocument] which will return the document object. From there you can walk the node tree, get the selection, etc.

> I'm still struggling to find a way to select an image within the page. I'd like to simply click on an image within the webview, then a button in my UI to process it.

I’m not sure what the best way of doing this would be. In either case you have to intercept and modify the normal event handling in the view. You might have better luck asking on one of the webkit mailing lists on this server.

—Jens

_______________________________________________

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

References: 
 >selected image in webview (From: Amy Heavey <email@hidden>)
 >Re: selected image in webview (From: Jens Alfke <email@hidden>)
 >Re: selected image in webview (From: Amy Heavey <email@hidden>)

  • Prev by Date: Re: selected image in webview
  • Next by Date: Re: finder eject images
  • Previous by thread: Re: selected image in webview
  • Next by thread: [MEET] Toronto Cocoaheads / tacow - July 12
  • Index(es):
    • Date
    • Thread