• 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: AppleEvents in Foundation tool (not working)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AppleEvents in Foundation tool (not working)


  • Subject: Re: AppleEvents in Foundation tool (not working)
  • From: Allan Odgaard <email@hidden>
  • Date: Sun, 7 Nov 2004 15:22:22 +0100

On 7. Nov 2004, at 14:17, Allan Odgaard wrote:

(replying to myself)

To use the NSAppleEventManager I start the run-loop like this:
   [[NSApplication sharedApplication] run];

And my inner run-loop is like this:
while(!endRunLoop)
{
if(NSEvent* event = [NSApp nextEventMatchingMask:NSAnyEventMask untilDate:[NSDate distantPast] inMode:NSDefaultRunLoopMode dequeue:1])
[NSApp sendEvent:event];
}



--
http://macromates.com/ ::: TextMate, OS X text editor
http://macromates.com/sigpipe/ ::: Personal weblog about programming


_______________________________________________
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: 
 >AppleEvents in Foundation tool (not working) (From: Allan Odgaard <email@hidden>)

  • Prev by Date: Re: Programmatically resizing a view which contains an NSTabView
  • Next by Date: Re: AppleEvents in Foundation tool (not working)
  • Previous by thread: AppleEvents in Foundation tool (not working)
  • Next by thread: Re: AppleEvents in Foundation tool (not working)
  • Index(es):
    • Date
    • Thread