On Jun 16, 2011, at 7:15 PM, G S wrote:

> The delegate for the UIWebView is set up in the XIB file; it's pretty
> hokey to have to intervene in code to then disassociate the view from
> its delegate. 

If the delegate object is being dealloced, it needs to clear the delegate 
reference to it. I don’t see this as hokey (well, any more hokey than 
ref-counting in general.)

> Does anyone know if I'm interpreting this situation correctly?  I
> guess the workaround is to set the UIWebView's delegate property to
> nil in the UIWebView owner's "viewWillDisappear" method or something.

I’m not sure exactly what you mean, but I think you’re on the right track. If 
some other object knows that the delegate is going to be dealloced, it can 
clear the delegate property on the webview for it.

—Jens

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to