Thanks! Works like a charm.
Didn't work at first because I put
theButton = [[NSButton alloc] init];
before the
[theButton setTitle:@"send steve money"];
When that was removed, it worked ok (and you will probably get your
money).
wamund
16 nov 2008 kl. 02.48 skrev Steven Riggs:
To do it fr
To do it from code, add something like..
IBOutlet NSButton *theButton;
...to your .h
Instanitate your class in interface builder and then connect theButton
to your button my control dragging from your class to the button.
and then use the documentation here:
http://developer.apple.com/docume
Am a quite a newbie to Cocoa programming.
Adding and configuring a button in IB is straightforward. I understand
the process of setting action and target in IB and the connection to
Xcode (IBOutlet and IBAction).
But what is the approach when creating a button in IB that I then want
to confi