Re: Catching events in an empty window.
Re: Catching events in an empty window.
- Subject: Re: Catching events in an empty window.
- From: Brian Smith <email@hidden>
- Date: Fri, 3 Aug 2007 20:47:29 -0600
On 3 Aug, 2007, at 6:18 PM, Daniel T. Staal wrote:
// Show the window.
[window makeKeyAndOrderFront:self];
if ( ![window makeFirstResponder:self] ) {
NSLog(@"Unable to make first responder");
}
You may need to override canBecomeKeyWindow and canBecomeMainWindow
to return YES as the NSWindow's reference document states that these
return YES if the window has a titlebar otherwise it returns NO. So,
your makeKeyAndOrderFront probably does not make the window key.
Brian
_______________________________________________
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