• 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: Automatic fill in of logins in WebViews?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Automatic fill in of logins in WebViews?


  • Subject: Re: Automatic fill in of logins in WebViews?
  • From: Pascal Pochet <email@hidden>
  • Date: Tue, 20 Feb 2007 11:49:14 +0100

Le 20-févr.-07 à 03:10, Paul Borokhov a écrit :
I'm loading a page in a webview in my app that includes a login form for which a password is already stored in the keychain by some other app (most likely Safari).
Since this isn't going to do it for me, what will?
Paul



DOM parsing…

when receiving the notification

- (void)webView:(WebView *)sender didFinishLoadForFrame:(WebFrame *) frame

if the frame is the one containing the form to be prefilled call your "prefill" method
passing it the [frame DOMDocument] as argument


in your "prefill" method parse the DOMDocument to find out the objects to be prefilled :
use the "nodeName", "hasAttributes", "getAttribute" methods of DOMNode to test what you are looking for…
and "setValue" to change the current value with the right data :
like getMyValueForKey of ABAddressBook and getPasswordFromKeychainForService of KeychainHelper





Pascal Pochet email@hidden





_______________________________________________

Cocoa-dev mailing list (email@hidden)

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: 
 >Re: Automatic fill in of logins in WebViews? (From: Paul Borokhov <email@hidden>)
 >Re: Automatic fill in of logins in WebViews? (From: Paul Borokhov <email@hidden>)

  • Prev by Date: Re: Automatic fill in of logins in WebViews?
  • Next by Date: NSWindow above Keynote Slideshow
  • Previous by thread: Re: Automatic fill in of logins in WebViews?
  • Next by thread: NSConnection - is this expected behavior?
  • Index(es):
    • Date
    • Thread