Hi Scott,

I was calling [NSApp stopModal] instead of abortModal. I did verify though that the modal loop stopped, and the original [NSApp runModalForWindow] call returned, finally returning to Photoshop. But perhaps there is a difference between stopModal and abortModal here.

Best regards,
Frederik Slijkerman


Scott Andrew wrote:
What doesn't make sense is that the plugin i worked on was modal (it was an export plugin). What I noticed in our window does is a call abortModal on the windowWIllClose notification. From what i can see, from the messages in your original post, it looks like you are still in the modal loop. Putting the notification there allows the window to handle when [window close] is called.

Scott
_______________________________________________

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

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

Reply via email to