FROM : Matt Neuburg
DATE : Wed Jul 26 03:07:24 2006
On Tue, 25 Jul 2006 21:52:45 +0200, Philip Dow <<email_removed>> said:
>> Also, on a different topic, I realize this conversation has been held
>> before, but I find it very odd behaviour to begin a sheet with
>> beingSheet:
>> (which makes it window-modal, automatically) and then suddenly call
>> runModelForWindow: on the sheet (which makes it app-modal). If you
>> wanted an
>> app-modal window, why did you summon a sheet? The standard UI is that
>> stand-alone dialogs are app-modal, sheets are window-modal. m.
>of going about a sheet. I've never noticed a difference while the
>application is actually running, so I haven't investigated it further.
Well, that doesn't make it right. (It's kind of a lazy way of doing a sheet,
since instead of using a delegate message when the sheet closes, you just
pause the code and pick up again in the same method after it closes.)
And you would notice a difference if there were more than one window.
You might also notice a difference in the behavior of your menus (menus
behave differently in an app-modal dialog, IIRC, though don't ask me for
details as I've forgotten).
m.
--
matt neuburg, phd = <email_removed>, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide - Second Edition!
<http://www.amazon.com/gp/product/0596102119>
DATE : Wed Jul 26 03:07:24 2006
On Tue, 25 Jul 2006 21:52:45 +0200, Philip Dow <<email_removed>> said:
>> Also, on a different topic, I realize this conversation has been held
>> before, but I find it very odd behaviour to begin a sheet with
>> beingSheet:
>> (which makes it window-modal, automatically) and then suddenly call
>> runModelForWindow: on the sheet (which makes it app-modal). If you
>> wanted an
>> app-modal window, why did you summon a sheet? The standard UI is that
>> stand-alone dialogs are app-modal, sheets are window-modal. m.
>of going about a sheet. I've never noticed a difference while the
>application is actually running, so I haven't investigated it further.
Well, that doesn't make it right. (It's kind of a lazy way of doing a sheet,
since instead of using a delegate message when the sheet closes, you just
pause the code and pick up again in the same method after it closes.)
And you would notice a difference if there were more than one window.
You might also notice a difference in the behavior of your menus (menus
behave differently in an app-modal dialog, IIRC, though don't ask me for
details as I've forgotten).
m.
--
matt neuburg, phd = <email_removed>, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide - Second Edition!
<http://www.amazon.com/gp/product/0596102119>
| Related mails | Author | Date |
|---|---|---|
| No related mails found. | ||






Cocoa mail archive

