• 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
commandline tool should start Cocoa GUI
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

commandline tool should start Cocoa GUI


  • Subject: commandline tool should start Cocoa GUI
  • From: "Sven Hoffmann" <email@hidden>
  • Date: Tue, 22 Feb 2005 08:46:45 +0200
  • Thread-topic: commandline tool should start Cocoa GUI

Hi everybody,

 

I have a commandline tool that should, for test reasons, load and launch a Cocoa Bundle.

For that purpose I wrote a few C wrapper functions into the Bundle’s Controller that initialize Cocoa, create NSApp, load the nibfile and so on.

 

When started and given the according arguments the commandlinetool brings up the GUI, but most of the interface elements, namely NSTextfields, don’t react to typing in text. I can select a textfield, but there is no reaction to pressing keys. The only interface elements that react are ones that are I connected to action methods of the controller in Interfacebuilder. So I can press the quit button, for example.

Instead when I type text it goes to wherever the commanndline tool is run from, that is the run console, the debugger console or a terminal.

 

I know that The Bundle does work, when incorporated into a Carbon GUI Application.

Now my feeling is, that because there is a no-GUI application before the GUI is brought up, there is no responder for the events sent from the window server for the GUI.

 

If anybody has suggestions on how to resolve this problem, please let me know.

 

 

Thanks,

 

Sven Hoffmann

 

 

**************************************************************************************************
The contents of this email and any attachments are confidential.
It is intended for the named recipient(s) only.
If you have received this email in error please notify the system manager or  the
sender immediately and do not disclose the contents to anyone or make copies.

** eSafe scanned this email for viruses, vandals and malicious content **
**************************************************************************************************
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: commandline tool should start Cocoa GUI
      • From: Bob Ippolito <email@hidden>
  • Prev by Date: Re: NSStepper and NSTextField
  • Next by Date: Re: commandline tool should start Cocoa GUI
  • Previous by thread: Re: What part of DO don't I understand?
  • Next by thread: Re: commandline tool should start Cocoa GUI
  • Index(es):
    • Date
    • Thread