Re: AppleEvents in Foundation tool (not working)
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