NSOpenPanel
Create the panel using the following:
NSOpenPanel *op = [NSOpenPanel openPanel];
This only instantiates the object. There are several calls to make the dialog window show up on the screen. I will list them here for completeness however the class reference from apple indicates that these calls were deprecated for OS X 10.6. Dumb!...
– beginForDirectory:file:types:modelessDelegate:didEndSelector:contextInfo:
–beginSheetForDirectory:file:types:modalForWindow:modalDelegate:didEndSelector:contextInfo:
– runModalForDirectory:file:types:
* I used this one and it worked will. I set file and types arguments to nil
No comments:
Post a Comment