• 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: NSString and UIWebView load
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSString and UIWebView load


  • Subject: Re: NSString and UIWebView load
  • From: Andrew Farmer <email@hidden>
  • Date: Fri, 11 Sep 2009 19:10:35 -0700

On 11 Sep 2009, at 06:59, Dragos Ionel wrote:
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.

Assigning a new value to a NSString * pointer does not mutate the original string.
_______________________________________________


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


  • Follow-Ups:
    • Re: NSString and UIWebView load
      • From: Dragos Ionel <email@hidden>
References: 
 >NSString and UIWebView load (From: Dragos Ionel <email@hidden>)

  • Prev by Date: Snow Leopard "force quit" hang reports no longer contain useful information
  • Next by Date: AffineTransform
  • Previous by thread: NSString and UIWebView load
  • Next by thread: Re: NSString and UIWebView load
  • Index(es):
    • Date
    • Thread