The following gives a minimal code necessary to create and use an NSOpenPanel modal file open dialog box in Objective C
NSOpenPanel *op = [NSOpenPanel openPanel];
if ([op runModal] == NSOKButton)
{
NSString *filename = [op filename];
}





