On Jan 4, 2013, at 11:52 AM, Jerry Krinock <je...@ieee.org> wrote: > Instead of getting a focus ring around the clicked cell, you get a 1-pixel > gray rectangle. > Instead of the text being highlighted normally, you get a gray highlight. > When you type characters, a sysbeep.
This isn’t a bug, if I understand the issue correctly. An NSWindow without a title-bar returns NO from -canBecomeKeyWindow, so the window won’t accept keyboard focus. That’s why the highlight is gray and you can’t type into it. To work around this, subclass NSWindow and override -canBecomeKeyWindow to return YES. Or if you’re using the window for a sheet, just set the title-bar checkbox. It won’t make any visual change at runtime (title bars are always suppressed in sheets) but it will enable key focus. —Jens _______________________________________________ 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com