On Sep 16, 2011, at 7:40 PM, Torsten Curdt wrote:

>    [NSApp beginSheet:self.panel
>       modalForWindow:self.window
>        modalDelegate:self
>       didEndSelector:nil
>          contextInfo:nil];
> 
>    [NSApp runModalForWindow:self.panel];
>    [NSApp endSheet:self.panel];
>    [self.panel orderOut:self];

You’re trying to run a sheet as a modal panel; that’s not how it’s done. 
Instead you open the sheet and return to the main event loop (i.e. delete the 
last three lines). It runs asynchronously.

—Jens

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

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