Re: Threading issues with ivars

2010-02-02 Thread Andreas Grosam
On Feb 2, 2010, at 2:16 PM, Peter Blazejewicz wrote: > Hi Andreas, > You're not clearing "text" - you're clearing UILabel reference in your code: > > self.nameLabel = nil; Doh! Especially, as I have *three* labels, and only this one was wrong ... Thank you very much Peter! I almost lost

Re: Threading issues with ivars

2010-02-02 Thread Peter Blazejewicz
Hi Andreas, You're not clearing "text" - you're clearing UILabel reference in your code: self.nameLabel = nil; If you wan't to reset just text then: self.nameLabel.text = @""; (or any way you prefer depending on UI requirements), With your current code you just sending message to nameLabel = whi

Re: Threading issues with ivars

2010-02-02 Thread Graham Cox
On 02/02/2010, at 11:53 PM, Graham Cox wrote: > My understanding is that refers to the read OK, scratch that - my understanding was wrong. I should have checked before posting - indeed, copy refers to the assignment, not the read. --Graham ___ Co

Re: Threading issues with ivars

2010-02-02 Thread Graham Cox
On 02/02/2010, at 11:49 PM, Andreas Grosam wrote: > I don't see why this should happen, since I think I get a copy of the string > - as the property declaration implies: @property (copy) NSString* name. > > Do I miss something fundamentally? My understanding is that refers to the read of the

Threading issues with ivars

2010-02-02 Thread Andreas Grosam
Hello, I have the following issue: The code below shows a brief snippet of a view controller. Its responsibility - besides managing the views - is to create a URL request, and using a UIConnection to download data. Then, the data - a JSON format - will be parsed. The result is a dictionary fro