Re: Problems with KeyDown events
Re: Problems with KeyDown events
- Subject: Re: Problems with KeyDown events
- From: "Timothy J. Wood" <email@hidden>
- Date: Sat, 17 Aug 2002 19:06:32 -0700
What do you get if you send -canBecomeKeyWindow? I suspect it will
return NO due to the lack of the title bar. You might be able to
subclass NSWindow and just return YES from this method.
-tim
On Saturday, August 17, 2002, at 07:17 PM, Marcos Tirao wrote:
Hi! Everybody I have a little problem with KeyDown Events using Cocoa
I want to have a window without the border. I do that promatically
with the following line
mainWindow = [[NSWindow alloc]
initWithContentRect:NSMakeRect(0,0,640,480)
styleMask:NSBorderlessWindowMask
backing:NSBackingStoreBuffered
defer:NO];
and all necessary initialization according with coco docs to handle
keyDown events, but nothing happens when I press a key.
But if a change NSBorderlessWindowMask with NSTitledWindowMask
everything work just fine.
That's weird, isn't it?
Does anyone can help me to deal with this problem?
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.