On 2/9/09 3:54 PM, Kevin Martin said:

>I have a console application that I want to be able to run on both
>Windows and OS X, The only real UI related task I have is to prompt
>for paths for loading and saving files. I really prefer a nice dialog
>to asking the user to enter a path on the console.
>
>For the OS X version of the code I see that NSSavePanel and
>NSOpenPanel are what I'm after. I've written what I think is right,
>but I get no keyboard input - or rather it goes to the wrong place.
>I'm guessing this is because there is no NSApplication (and thus no
>message loop) set up

Your guess is on the mark.  You might be able to use
TransformProcessType().  Have you read about it?  It's been discussed
several times in the past.  I haven't used it much, but the archive
discussion might help you.

--
____________________________________________________________
Sean McBride, B. Eng                 s...@rogue-research.com
Rogue Research                        www.rogue-research.com
Mac Software Developer              Montréal, Québec, Canada


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to