Re: Small Webkit question
Re: Small Webkit question
- Subject: Re: Small Webkit question
- From: glenn andreas <email@hidden>
- Date: Tue, 24 Jan 2006 17:56:14 -0600
On Jan 24, 2006, at 5:40 PM, John Stiles wrote:
I want to temporarily change the policy delegate on a web view I've
got.
It's easy to change the delegate to point to me:
[myWebView setPolicyDelegate:self];
Once I'm done, what's the best way to change it back? Empirically,
I've found that this works:
[myWebView setPolicyDelegate:NULL];
But is that the right way to do it?
id oldDelegate = [myWebView policyDelegate];
[myWebView setPolicyDelegate: self];
...
[myWebView setPolicyDelegate: oldDelegate];
Glenn Andreas email@hidden
<http://www.gandreas.com/> wicked fun!
quadrium | build, mutate, evolve | images, textures, backgrounds, art
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden