window with focus, but no titlebar.
window with focus, but no titlebar.
- Subject: window with focus, but no titlebar.
- From: Duncan Campbell <email@hidden>
- Date: Wed, 21 Jun 2006 17:08:57 +1000
I am trying to implement my own code-completion, to work in a similar
manner to XCode, and am having problems making the code-completion
have focus, and also not titlebar.
With XCode, the NSTableView on the completion window has focus (i.e.
the scrollbar is dark, you can use the mouse to scroll up and down) -
however the editing NSTextView ALSO has focus - i.e. the cursor
continues to remain and blink.
Searching through the forums, it would seem a combination of
overriding -(BOOL)canBecomeKeyWindow to always return TRUE, and
initWithContentRect: to set the NSBorderlessWindowMask should work -
however it does not:
If I try to use an NSWindow, I can never achieve focus unless I
physically click on the window.
However, if I use an NSPanel, and set the "Utility Panel" and "Non
activating Panel" properties, I CAN make it work - however, the
moment I try to override the windowMask to hide the titlebar it stops
being able to gain focus.
If all of this makes no sense, try this: open xCode, click in the
editor window to set focus, then press apple+t to make the font
dialog come up - notice how you can scroll through the fonts, with
the mouse but the cursor remains blinking in the textView? This is
what I am trying to accomplish - but without the titlebar of the font
window showing.
Any suggestions or ideas greatfully accepted.
Cheers,
Duncan Campbell.
_______________________________________________
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