I can easily do something by creating an IBAction method and linking it to a button in IB. For instance...
-(IBAction)popThat:(id)sndr{ [windy setFrame:eRect display:YES];}
However, I cannot, in my experience, figure out how to do this with a simple, invoked method ... i.e.
-(void) popThatMethod { [windy setFrame:eRect display:YES]; } -(void) awakeFromNib { [self popThatMethod]; }
I would expect this method to do the same thing as clicking a button ... since they are identical ... but NO. Nothing happened. What am I missing here?
source share