Is it safe to do the following?
// in AppController.h
@interface AppController : NSObject
{
IBOutlet NSTextField *label;
}
@end
// in AppController.m
- (void)awakeFromNib
{
[label setIntValue:5];
}
Or is there a chance that label might not yet have been fully initialised when awakeFromNib is sent to the AppController instance?
Documentation says:
In Fact, awakeFromNib is send to all objects the nib created and File’s Owner , after creation of the objects and connecting outlets and actions is complete.