Re: How to make a NSPanel show up in Windows menu?
Re: How to make a NSPanel show up in Windows menu?
- Subject: Re: How to make a NSPanel show up in Windows menu?
- From: Dustin Voss <email@hidden>
- Date: Mon, 26 Aug 2002 20:55:59 -0700
On Sunday, August 25, 2002, at 07:31 PM, Matt Neuburg wrote:
On Sat, 24 Aug 2002 16:05:52 -0700, Dustin Voss <email@hidden>
said:
Pretty much like the subject says. I've got an NSPanel (a Find
panel), and
I'd like it, and most other modeless panel I'm anticipating, to show
up in
the Windows menu.
Override it again? Haven't tried this but it's the first thing I'd
do.
m.
Well, I just tried a custom sub-class of NSPanel that always returns
NO
for isExcludedFromWindowsMenu. The method isn't even called
Sorry - I never post without testing unless I tell you explicitly I'm
doing
so, and I did tell you so. :-(
Okay, my second approach would be to ask myself what I'm gaining by
having
this be an NSPanel. Why not just make it an NSWindow? m.
Yeah, I guess I'll have to do this. I had thought about this, and
decided to leave it be an NSPanel for responder chain purposes. See, I
know that NSPanels don't become main windows, but do become key
windows. So if I have a document window and open a Find panel, the
document window will remain in responder chain as the main window
(allowing it to receive messages from the Find panel and to keep the
active appearance), and the Find panel can be in the foreground as the
key window.
Still, I figure I can keep a Find NSWindow from becoming main when it
is brought to the front, so I'd get the same effect.
--
Dustin
_______________________________________________
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.