Im just new for programing for OSX I wonder to know how I can double click or click on a label then I can send a command? here is my h file
and my m file is here
when i double click or click on the label nothing happens and it will not copy the string of the label to pastboard thanks
Code:
- (IBAction)lbl1:(id)sender;
Code:
- (IBAction)lbl1:(id)sender {
[[NSPasteboard generalPasteboard] clearContents];
[[NSPasteboard generalPasteboard] setString:_lbl1.stringValue forType:NSStringPboardType];
}
Last edited by a moderator: