简体   繁体   中英

Open a local file from an Xcode mac application

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM