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


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

  • Prev by Date: Playing SWF Movies
  • Next by Date: Entity Relationship Modeling Editor
  • Previous by thread: Re: Editable fields in a borderless window
  • Next by thread: Re: Editable fields in a borderless window
  • Index(es):
    • Date
    • Thread