On 17/05/2011, at 10:43 AM, Graham Cox wrote:

> 
> On 17/05/2011, at 7:19 AM, Bing Li wrote:
> 
>> I was told I should implement a RunLoop in
>> the code. How to do that?
> 
> 
> you call [NSApp run];


Actually, correction - you don't. You just call NSApplicationMain(...), which 
creates the app and runs it for you. Even easier. The fact that I'd forgotten 
exactly what was in main.m just goes to show, you never need to know or look at 
this if you let Xcode set up your project for you.

--Graham


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to