Why we need [NSApp run] for this cocoa application
Why we need [NSApp run] for this cocoa application
- Subject: Why we need [NSApp run] for this cocoa application
- From: "prashant sharma" <email@hidden>
- Date: 24 Aug 2005 11:49:23 -0000
Hi,
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??
Regards,
Prashant
_______________________________________________
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