Re: Running event loop while showing non-standard popup
Re: Running event loop while showing non-standard popup
- Subject: Re: Running event loop while showing non-standard popup
- From: Steve Mills <email@hidden>
- Date: Tue, 21 May 2013 08:51:33 -0500
On May 21, 2013, at 01:58:00, Kyle Sluder <email@hidden> 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 (email@hidden)
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:
This email sent to email@hidden