• 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: NSWindow NSBorderlessWindowMask
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSWindow NSBorderlessWindowMask


  • Subject: Re: NSWindow NSBorderlessWindowMask
  • From: Finlay Dobbie <email@hidden>
  • Date: Sat, 2 Mar 2002 15:44:02 +0000

On Saturday, March 2, 2002, at 01:00 PM, Gore wrote:

I have a NSWindow that I have initialized to be of type NSBorderlessWindowMask to get a transparent window. But all controls that use the field editor is not editable anymore,

You need to subclass NSWindow and override -(BOOL)canBecomeKey or something like that -- by default borderless windows can't become the key window (so can't get keyboard focus).

but if I change the type to NSTitledWindowMask they are edit able, but the window is not transparent anymore.

Hmm? Works fine here. Are you using -setAlphaValue or doing a custom shaped window? If you're doing a custom shape, you want NSBorderlessWindow probably.

-- Finlay
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >NSWindow NSBorderlessWindowMask (From: Gore <email@hidden>)

  • Prev by Date: Re: NSFormatter bugs
  • Next by Date: Re: NSTabView like PB.
  • Previous by thread: NSWindow NSBorderlessWindowMask
  • Next by thread: Does Cocoa use /usr/share/zoneinfo?
  • Index(es):
    • Date
    • Thread