A Drawer with a Modal Dialog: is this too stupid?
A Drawer with a Modal Dialog: is this too stupid?
- Subject: A Drawer with a Modal Dialog: is this too stupid?
- From: Stéphane Sudre <email@hidden>
- Date: Wed, 5 Nov 2003 00:30:56 +0100
I'm wondering if what I'm trying to do is so stupid that it would
explain why it's not working.
I have a NSPanel which is used to run a modal dialog.
I attached to this NSPanel a NSDrawer which includes some widgets and a
NSButton.
In IB, the NSButton is linked to a method of the dialog controller
whose sole purpose is to stop the modal dialog.
The issue is that when I click on the NSButton, the message is not
sent. If I run the window in a non modal session, the message is sent.
If I try to see what the target and action of the NSButton is before
running modal, the application is crashing in the runloop as if adding
2 lines of code could crash an application before it calls these 2
lines of code.
I'm not 100% sure what the explanation for this lack of message and
crash is:
a) only a fool would use a NSDrawer in a modal dialog. But I'm pretty
sure my usage does not go against the law of the HIG. And I really need
this modal behavior: i.e. while the window is being displayed you can't
quit or do anything in another window.
b there's some mysterious cheatcode to add to make it work. I tried
setWorksWhenModal with no effect
c) AppKit does not support this mad scientit's idea.
d) there's a bug in the AppKit.
_______________________________________________
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.