Prompting User to Select File

Member
Posts: 153
Joined: 2004.12
Post: #1
This *little* problem has been driving me nuts for way too many hours now. I need to prompt the user for a file location. I was hoping something along the lines of the generic OS X save/open dialogue box.

Does anyone have any suggestions on how i could get something like that working?

There was a long silence...
'I claim them all,' said the Savage at last.
Quote this message in a reply
Luminary
Posts: 5,143
Joined: 2002.04
Post: #2
Read the NSOpenPanel docs. It's very straightforward.
Quote this message in a reply
Member
Posts: 153
Joined: 2004.12
Post: #3
Hidden in plain site Blink

There was a long silence...
'I claim them all,' said the Savage at last.
Quote this message in a reply
Moderator
Posts: 508
Joined: 2002.09
Post: #4
Depends which framework you are using: NSOpenDialog is for Cocoa, for Carbon you'll need to use something else, navigation services I believe, but I think that's old stuff.

"When you dream, there are no rules..."
Quote this message in a reply
Luminary
Posts: 5,143
Joined: 2002.04
Post: #5
Nav Services the appropriate API for Carbon, but this thread is in the Cocoa forum Smile
Quote this message in a reply
Sage
Posts: 1,403
Joined: 2005.07
Post: #6
thanks, fixed it.
http://www.geocities.com/ed72678954/Tsu_Src.zip
Checkout the code for the Load menu item.

Sir, e^iπ + 1 = 0, hence God exists; reply!
Quote this message in a reply
Member
Posts: 370
Joined: 2002.04
Post: #7
Broken link, just FYI.

Did you ever wonder why we had to run for shelter when the promise of a brave new world unfurled beneath the clear blue sky?
Quote this message in a reply
Post Reply