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 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:
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.