• 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
Main application loop question : what is inside [NSApp run] ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Main application loop question : what is inside [NSApp run] ?


  • Subject: Main application loop question : what is inside [NSApp run] ?
  • From: Tristan Lorach <email@hidden>
  • Date: Tue, 4 Mar 2003 09:28:17 -0800

I'm just trying to do the same as [NSApp run] because I would like to keep
the control over this main loop. My purpose is to write my own loop so that
I can introduce some other processing (OpenGL). I want to do this because I
need OpenGL to be a priority regarding to the rest of the app... Anyway.

Thus I decided to get the Current Loop : [NSRunLoop currentRunLoop] so that
I could call it like :

While(...)
{
[[NSRunLoop currentRunLoop] runUntilDate:NULL];
}

It should properly handle events of the loop. But it doesn't. If ever I only
try this line :

[[NSRunLoop currentRunLoop] run];

Instead of

[NSApp run];

The problem is the same : the mouse events aren't properly handled (buttons
don't react, the window cannot be moved etc)

Any idea of what's inside [NSApp run] ?

Tristan Lorach
NVidia - DevTech department.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Weird crashes in loading nibs
  • Next by Date: Re: Georg looks at that Georg! ;-)
  • Previous by thread: Weird crashes in loading nibs
  • Next by thread: path encoding on the file systems?
  • Index(es):
    • Date
    • Thread