Re: sheet not receiving all events?
Re: sheet not receiving all events?
- Subject: Re: sheet not receiving all events?
- From: Jens Alfke <email@hidden>
- Date: Fri, 16 Sep 2011 22:04:24 -0700
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 (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