Cocoa window in Carbon app and [NSApp postEvent]

2009-08-13 Thread Frederik Slijkerman
Hi, I'm working on a Photoshop plugin that uses a Cocoa UI, while of course Photoshop is still Carbon currently. The plugin runs as a modal window pretty much all the time. Now I've run into a problem: when I post a custom event to the main event queue using [NSApp postEvent], it is never

Re: Cocoa window in Carbon app and [NSApp postEvent]

2009-08-13 Thread Ken Ferry
Hi, It sounds to me like you are interested in -[NSObject performSelectorOnMainThread:withObject:waitUntilDone:modes:]. -Ken On Thu, Aug 13, 2009 at 12:38 PM, Frederik Slijkerman frede...@ultrafractal.com wrote: Hi, I'm working on a Photoshop plugin that uses a Cocoa UI, while of course