Re: Editable fields in a borderless window
Re: Editable fields in a borderless window
- Subject: Re: Editable fields in a borderless window
- From: glenn andreas <email@hidden>
- Date: Thu, 15 Sep 2005 17:41:31 -0500
On Sep 15, 2005, at 1: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.
I've experimented with all the WindowMask constants, and it seems
that either the NSTitledWindowMask or NSResizableWindowMask must be
used to have editable fields. Unfortunately, those tags place a
title bar on the window, which is not wanted.
Does anyone know a way to prevent this behavior?
Thanks!
Check out NSWindow's
- (BOOL)canBecomeKeyWindow;
Basically you'll need to subclass and override this method.
Glenn Andreas email@hidden
<http://www.gandreas.com/> wicked fun!
Widgetarium | the quickest path to widgets
_______________________________________________
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