KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I have read something in some foreign code and I want to check my assumption: @synchronized(self) is used to get rid of the self prefix when setting a property. So in my example below, I'm setting the strText of the instance, not just a local variable, right? - (void)myfunction{ NSString * strText = @"var in function"; @synchronized(self) { strText = @"var class (self.strText)"; } }
Tags (comma-separated)
Save Edits
Cancel