Re: detect URL change
Re: detect URL change
- Subject: Re: detect URL change
- From: Adam Leonard <email@hidden>
- Date: Thu, 5 Jun 2008 17:28:18 -0700
On Jun 5, 2008, at 3:10 PM, Scott Anguish wrote:
I don't think the undocumented internal Safari APIs are appropriate
to discuss here.
I agree, but for this specific question you can avoid relying on
internal Safari APIs.
I think you can pretty safely assume that Safari will always use
WebKit with a WebView in the foreseeable future.
So, look at the docs for all the notifications WebKit posts. I imagine
either WebViewProgressStartedNotification or
WebViewProgressFinishedNotification will give you the information you
need. Register for them as you would any normal notification, and you
can even use -[NSNotification object] to interact with the WebView
that posted it.
Remember that to fully implement a parental control plugin, you will
probably need to rely on the undocumented implementation details of
Safari, which is risky, bad, probably off topic here, etc.
Adam Leonard
On Jun 5, 2008, at 5:06 PM, Mauricio Camayo wrote:
Hi list.
I'm currently making my own parental control plugin, using SIMBL to
patch it
to Safari.
I made it trought XCode using a Cocoa Bundle type of project, as
exercise,
put a new menu on the menu bar and it worked.
Problem is, don't know how to catch a URL change, so I can
determine if it's
a "clean" webpage or not.
_______________________________________________
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
_______________________________________________
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