• 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: Small Webkit question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Small Webkit question
      • From: John Stiles <email@hidden>
References: 
 >Small Webkit question (From: John Stiles <email@hidden>)

  • Prev by Date: Small Webkit question
  • Next by Date: Re: Get the number of lines of text in an NSTextView?
  • Previous by thread: Small Webkit question
  • Next by thread: Re: Small Webkit question
  • Index(es):
    • Date
    • Thread