• 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: (no subject)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: (no subject)


  • Subject: Re: (no subject)
  • From: Finlay Dobbie <email@hidden>
  • Date: Wed, 24 Aug 2005 13:37:02 +0100

On 24 Aug 2005 11:49:04 -0000, prashant sharma
<email@hidden> wrote:
> I hv create a cocoa application. In this application i hv created an observer to receive all notifications posted at NSWorkspace notification center.
> I wanted to ask why we need a NSApp run method for this application, as we are not interacting with window server.

What makes you say that? A lot of the functionality provided by
NSWorkspace relies on communication with the windowserver. Just
because you don't have any windows doesn't mean that you're not
interacting with the windowserver.

> I created a thread to run on while loop, so that program should keep runing and should catch all the notifications but thread comes out of while loop after some iterations.

You might like to look into the documentation on runloops.

 -- Finlay
 _______________________________________________
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

References: 
 >(no subject) (From: "prashant sharma" <email@hidden>)

  • Prev by Date: Re: Finder Color Label
  • Next by Date: Re: Webview reloading is blocked ?
  • Previous by thread: (no subject)
  • Next by thread: Catching application errors
  • Index(es):
    • Date
    • Thread