• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSSavePanel called from BSD application - no keyboard input
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSSavePanel called from BSD application - no keyboard input


  • Subject: Re: NSSavePanel called from BSD application - no keyboard input
  • From: "Sean McBride" <email@hidden>
  • Date: Tue, 10 Feb 2009 10:41:05 -0500
  • Organization: Rogue Research Inc.

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                 email@hidden
Rogue Research                        www.rogue-research.com
Mac Software Developer              Montréal, Québec, Canada


_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:

This email sent to email@hidden

References: 
 >NSSavePanel called from BSD application - no keyboard input (From: Kevin Martin <email@hidden>)

  • Prev by Date: Re: FSExchangeObjects / FSReplaceObject
  • Next by Date: Re: One Shot Windows: WARNING
  • Previous by thread: Re: NSSavePanel called from BSD application - no keyboard input
  • Next by thread: Re: NSSavePanel called from BSD application - no keyboard input
  • Index(es):
    • Date
    • Thread