• 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
sheet not receiving all events?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

sheet not receiving all events?


  • Subject: sheet not receiving all events?
  • From: Torsten Curdt <email@hidden>
  • Date: Sat, 17 Sep 2011 04:40:33 +0200

On a button click I open a NSPanel custom sheet - just like described
in the docs

  - (void) buttonTest:(id)sender
  {
    [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];
  }

  - (IBAction) buttonDone:(id)sender
  {
    [NSApp stopModal];
  }


This NSPanel has a NSButton and some NSTextFields. While I can click
the NSButton to dismiss the sheet I cannot get focus of the
NSTextFields (and therefor cannot enter text). In fact while mouse
events do not seem to make it through the parent window still receives
keyboard events.

How can this be? I am a little confused here. Any pointers appreciated.

cheers,
Torsten
_______________________________________________

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: Jens Alfke <email@hidden>
  • Prev by Date: Re: Is anyone else noticing more duplicate keypresses (bad debounce) in Lion?
  • Next by Date: Re: sheet not receiving all events?
  • Previous by thread: Re: Is anyone else noticing more duplicate keypresses (bad debounce) in Lion?
  • Next by thread: Re: sheet not receiving all events?
  • Index(es):
    • Date
    • Thread