sheet not receiving all events?
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