I can easily “do something”, by creating an IBAction method, and connecting it to a button in IB. For example…
-(IBAction)popThat:(id)sndr{ [windy setFrame:eRect display:YES];}
However, I cannot, for the life of me, figure out how to do this via a simple, callable method… i.e.
-(void) popThatMethod { [windy setFrame:eRect display:YES]; }
-(void) awakeFromNib { [self popThatMethod]; }
I would expect that this method would DO the same thing as clicking the button… as they are identical… but NO. Nothing happens. What am I missing here?
I don’t state that this is categorically the best answer, or the right way to do it, but one approach that works is to put the following in
-applicationDidFinishLaunching::This causes it to be called on the next pass of the runloop, by which time whatever was not in place before is now in place.