Re: NSWindow NSBorderlessWindowMask
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.