If this is your first visit, be sure to check out the FAQ by clicking the link above.
You may have to register before you can post: click the register link above to proceed.
To start viewing messages, select the forum that you want to visit from the selection below.
I'm just trying to generate an open panel after a button is pressed. The panel pops up, but then disappears immediately before I can do anything. Here's the code:
I think it may be because you're attempting to run it as a sheet, but passing nil as the modalForWindow: paremeter. Maybe you want to use runModalForDirectory:file:types: ?
Originally posted by Wevah: I think it may be because you're attempting to run it as a sheet, but passing nil as the modalForWindow: paremeter. Maybe you want to use runModalForDirectory:file:types: ?
I'll give that a try. I snagged the above method from Hillegass' book where he says that passing nil will cause the panel to be standalone (which it is for a split second), otherwise it will slide down as a sheet.