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 (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