• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Editable fields in a borderless window
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >Editable fields in a borderless window (From: Louis Sinclair <email@hidden>)

  • Prev by Date: playing with arcs
  • Next by Date: Re: Editable fields in a borderless window
  • Previous by thread: Editable fields in a borderless window
  • Next by thread: Re: Editable fields in a borderless window
  • Index(es):
    • Date
    • Thread