- Where Developers Learn, Share, & Build Careers
I am trying to create a button in Mac program in Maco, but I do not know how, Trying to:
NSRact frame = NSMKAct (10, 200, 80, 100); NSButton * btn = [[NSButton alloc] initWithFrame: frame]; [BTN Set button type: NsmemberRepash Inbutton]; [BTN set bezel style: NSRattbeizle style]; [BTN SETTITAL: @ "Click Me"]; [BTN Set Action: @Selector (hide labels :)); [Adsview view: BTN] See; but line [BTN set action: @Selector (hide label)]; Do not work, how can I make an action here?
The method hides the labels in the function, because I used it with the second button.
Does your hidden label method take an argument? If not, leave it: Selector
Comments
Post a Comment