• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: sheet not receiving all events?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: sheet not receiving all events?
      • From: Torsten Curdt <email@hidden>
References: 
 >sheet not receiving all events? (From: Torsten Curdt <email@hidden>)

  • Prev by Date: sheet not receiving all events?
  • Next by Date: Re: Find All keychain items on MAC OS X
  • Previous by thread: sheet not receiving all events?
  • Next by thread: Re: sheet not receiving all events?
  • Index(es):
    • Date
    • Thread