• 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: GUI not responding possibly because of NSRunLoop, what can I do?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: GUI not responding possibly because of NSRunLoop, what can I do?


  • Subject: Re: GUI not responding possibly because of NSRunLoop, what can I do?
  • From: Alastair Houghton <email@hidden>
  • Date: Tue, 7 Aug 2007 14:45:42 +0100

On 7 Aug 2007, at 12:21, Devraj Mukherjee wrote:

Hi Alastair,

Thanks for taking time to assist me. I have implemented the
NetSocket's delegate methods to do what is required. My application
doesn't have a default GUI launched. It waits and listens to events on
the socket and launches GUI elements. So for a lot of its life its
headless.

Can I achieve this by working with something like NSApplication?

I'm not sure what your question means exactly. Are you asking whether your app should be a GUI app or not?


It sounds like you might be trying to implement the kind of application you often see in the status area (the right hand side of the menu bar). In that case, firstly you might want an NSStatusItem so that users can easily control your application, and secondly you should find that you can display windows easily enough using standard Cocoa techniques (i.e. loading them from a nib file if necessary, then sending them -makeKeyAndOrderFront: messages).

In such a case, you'd probably want to use LSUIElement in your Info.plist (see, e.g. <http://www.cocoadev.com/index.pl?LSUIElement> for more information on that).

Kind regards,

Alastair.

p.s. Please copy the list on your responses. That way when someone else searches the archives for answers to a similar question, they'll find this thread.

--
http://alastairs-place.net


_______________________________________________

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


  • Follow-Ups:
    • Re: GUI not responding possibly because of NSRunLoop, what can I do?
      • From: "Devraj Mukherjee" <email@hidden>
References: 
 >GUI not responding possibly because of NSRunLoop, what can I do? (From: "Devraj Mukherjee" <email@hidden>)
 >Re: GUI not responding possibly because of NSRunLoop, what can I do? (From: Alastair Houghton <email@hidden>)
 >Re: GUI not responding possibly because of NSRunLoop, what can I do? (From: Alastair Houghton <email@hidden>)

  • Prev by Date: Re: Integrating Unix scripting in Cocoa app
  • Next by Date: Re: Integrating Unix scripting in Cocoa app
  • Previous by thread: Re: GUI not responding possibly because of NSRunLoop, what can I do?
  • Next by thread: Re: GUI not responding possibly because of NSRunLoop, what can I do?
  • Index(es):
    • Date
    • Thread