How could I choose a file after clicking a select button? When I click the select button it should be opened a popup window that I can select the file from my harddisk.
-(IBAction)select:(id)sender{
NSOpenPanel* dlg =[NSOpenPanel openPanel];
[dlg setCanChooseFiles:YES];
[dlg setCanChooseDirectories:YES];
}
EDIT (after code posted):
You are not actually opening the panel, so you need something like: