• 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
Re: Problems with KeyDown events
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Problems with KeyDown events (From: Marcos Tirao <email@hidden>)

  • Prev by Date: Re: NEWBIE: double backslash in NSStrings
  • Next by Date: Re: NEWBIE: double backslash in NSStrings
  • Previous by thread: Re: Problems with KeyDown events
  • Next by thread: Generating AppleScript modal dlogs from a background app
  • Index(es):
    • Date
    • Thread