Re: NSPanel should not close on command-W
Re: NSPanel should not close on command-W
- Subject: Re: NSPanel should not close on command-W
- From: Keary Suska <email@hidden>
- Date: Sat, 21 Jun 2008 11:40:34 -0600
- Thread-topic: NSPanel should not close on command-W
6/21/08 11:10 AM, also sprach email@hidden:
> I use the panel as a palette. Something like the systems font chooser.
> They have the close button enabled, but do not responde to close
> commands from the keyboard.
Using TextEdit as an example, the font panel *will* close on command-w, if
it becomes key. It is just that it won't become key unless/until all
document windows are closed. This is the expected behavior I was talking
about.
> I could implement "windowShouldClose:" in the delegate but I do not
> know the source of the close event.
I think the other responder has your answer, *if* the issue is that your
panel always closes when your last document window is closed. If your panel
is in the document's nib, it may be getting disposed of. The only way to
stop that is to move the panel & related objects to a separate nib.
Best,
Keary Suska
Esoteritech, Inc.
"Demystifying technology for your home or business"
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden