• 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: Why we need [NSApp run] for this cocoa application
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Why we need [NSApp run] for this cocoa application


  • Subject: Re: Why we need [NSApp run] for this cocoa application
  • From: Bill Bumgarner <email@hidden>
  • Date: Wed, 24 Aug 2005 08:52:34 -0700

On Aug 24, 2005, at 4:49 AM, prashant sharma 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.
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.


Application works only if i use NSApp run method.
Why is that so??

http://developer.apple.com/documentation/Cocoa/Conceptual/ CommunicateWithObjects/Articles/Notifications.html#//apple_ref/doc/ uid/20001925


_______________________________________________
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: 
 >Why we need [NSApp run] for this cocoa application (From: "prashant sharma" <email@hidden>)

  • Prev by Date: RE: MiscKit, MOKit, etc.
  • Next by Date: CoreImage and deep images
  • Previous by thread: Why we need [NSApp run] for this cocoa application
  • Next by thread: Finder Color Label
  • Index(es):
    • Date
    • Thread