Re: Editable fields in a borderless window
Re: Editable fields in a borderless window
- Subject: Re: Editable fields in a borderless window
- From: email@hidden
- Date: Thu, 15 Sep 2005 17:52:49 -0400
On Sep 15, 2005, at 2:25 PM, Louis Sinclair wrote:
I've got a window with a totally custom look (made by using the
NSBorderlessWindowMask) that works great, except none of the text
fields are editable. All the other controls work as expected.
The thing you need to do is override canBecomeKeyWindow in your
NSWindow subclass to return YES.
- (BOOL) canBecomeKeyWindow
{
return YES;
}
That should take care of the problem. There's a project on Apple's
developer website that might help, too, and it has code to make the
window draggable--maybe a search for NSBorderlessWindowMask will
yield it, as I can't recall its exact name at the moment
Cameron
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden