For example, if I wanted to do this
simple line lots of times from lots of
different places in an app:
label1.text = @"Hello";
Firstly, in every class where you want to run the line, you would have to have a reference to the label1 object. Since in this case, this is a interface element, the easiest way would be to set an outlet in your header and then connect it up in interface builder.
@interface MyController : UIViewController
{
IBOutlet UILabel *label1;
}
@property(nonatomic, retain) IBOutlet UILabel *label1;
@end
Every class instance that refers to the label instance must have an outlet pointing to it and then you have to wire the outlet to the proper label in interface builder. (You can also create the relationship programmatically but that is more complex.) This way when you set the text of the label in your code, the runtime knows what object to send the message to.
If you have a background in a procedural language like Cobol (shudder), you're going to have to change your thinking to one based on object-oriented program. Objective-C design is even more object dependent than other common OOP languages.