What's the best way to reference to a dynamically allocated object (particularly interface elements) so I can access them from everywhere in the current class? @synthesize? declaring the object in the interface section? anything else?
+1
A:
This is the very definition of an instance variable, which — as you've noted — is what you get when you declare the object in the interface section.
@synthesize
gives you syntactic sugar for correctly creating accessors, but that's another layer on top. It can do the instance variable creation for you in some cases, but that's another topic entirely.
Jim Puls
2010-03-16 19:50:42
Okay, instance variables shall it be. Thank you!
2010-03-16 20:20:35