Is the following code supposed to run correctly?

NSString* *htmlContent* = ...;// very long html content

UIWebView* webView = [[UIWebView alloc] initWithFrame:...];

[webView  loadHTMLString:*htmlContent* baseURL:...]; //assume this will take
some time

*htmlContent* = @"different text";


My question is if the memory space for *htmlContent* will be preserved until
the webView finishes loading it, considering the fact that it will run in a
different thread.

Thanks,
Dragos
iphodea.com <http://www.iphodea.com>
_______________________________________________

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