I'm making a mac application in interface builder, and was wondering how I would go about assigning a button to open a file.
Specifically, I'm trying to make a file launch (it's an installer file) when I click a button on my Xcode application. How might I go about this?
Thanks in advance for any help.
Write IBAction
method for button.
- (IBAction)install:(id)sender;
{
// your code for installer file..
}
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.