Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Editable fields in a borderless window




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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden
References: 
 >Editable fields in a borderless window (From: Louis Sinclair <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.