On May 21, 2013, at 01:58:00, Kyle Sluder <k...@ksluder.com> wrote:

> The docs for +[NSEvent addLocalMonitor…] state that it does not work with 
> nested event loops like the kind -[NSApplication runModalForWindow:] uses.

The docs don't specifically say runModalForWindow, which leads the reader to 
assume it would work. Docs should always spell out exactly when something won't 
work if the vendor already knows of such things.

So then, what's the next thing to try? Seems like the next best thing is to 
subclass NSApplication, override sendEvent, and add special code to it just to 
handle this one small thing in a huge complex app. Or is there a way to create 
a new "regular" event loop?

--
Steve Mills
office: 952-818-3871
home: 952-401-6255
cell: 612-803-6157



_______________________________________________

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

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

Reply via email to