> On Nov 8, 2013, at 9:16 AM, Graham Cox <graham....@bigpond.com> wrote:
> 
> Unfortunately, it doesn’t work: the mouse clicks are not received and/or 
> processed (I’m not sure which). The Cancel button is just an ordinary button, 
> and if the dialog is displayed as a window without doing any work, I can 
> click the button as normal.

It’s -[NSApplication run] that is responsible for dispatching events, not 
NSRunLoop. It sounds like you want to be pumping the event loop yourself. Try 
using -sendEvent: and -nextEventMatchingMask:untilDate:nil inMode: dequeue:YES.

> 
> I’ve also tried running the runloop as above, then immediately trying to 
> handle any events for the window directly (which seems unnecessary, but I 
> tried it anyway). That doesn’t help.

I don't know if this is the same as what I described above. You shouldn’t have 
to run the runloop yourself; -nextEventMatchingMask: will run it for you.

--Kyle Sluder

_______________________________________________

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