Re: wait for sheet result
Re: wait for sheet result
- Subject: Re: wait for sheet result
- From: Matt Neuburg <email@hidden>
- Date: Mon, 18 Jan 2010 10:31:41 -0800
- Thread-topic: wait for sheet result
On or about 1/7/10 10:25 PM, thus spake "email@hidden"
<email@hidden>:
> Message: 16
> Date: Fri, 8 Jan 2010 17:23:06 +1100
> From: Graham Cox <email@hidden>
> Subject: Re: wait for sheet result>
>
> On 08/01/2010, at 4:24 PM, Jerry Krinock wrote:
>
>> The Sheet Programming Guide notes that Cocoa does not support nested (or
>> "piled on top of one another") sheets, and states that your app should make
>> sure this never happens, but doesn't give you any assistance in doing so.
>> Given that sheets frequently present errors or other unexpected results, we
>> really need a means for queueing multiple sheets, in the **unlikely** event
>> that one's app should ever need to present two sheets to the user in rapid
>> succession. Hey, I know it's not pretty, but one should design to handle the
>> corner cases.
>
>
> While the guide does say this:
>
> "Cocoa does not support the notion of cascading, or nested sheets. Per Apple
> Human Interface Guidelines, „when the user responds to a sheet, and another
> sheet for that document opens, the first sheet must close before the second
> one opens.‰
>
> In fact nested sheets do work fine - if you make a sheet the parent of a
> second sheet, it will work OK. What doesn't work is if you try and attach more
> than one sheet to the same parent.
>
> I'm not saying that cascaded sheets is good UI, but if there is no option,
> there doesn't seem to be anything to stop you.
In any document-based Cocoa app (such as TextEdit), choose File > Save As
and in the (sheet) Save dialog enter the name of an existing document. When
you click Save, a second sheet appears over the first sheet, asking whether
you want to cancel or replace the existing document. At least, that's the
case in Snow Leopard (I didn't try in any earlier system).
So "no cascading sheets" is just a canard. It's permitted, it's standard,
and sometimes it is obviously the right thing to do. m.
--
matt neuburg, phd = email@hidden, http://www.tidbits.com/matt/
pantes anthropoi tou eidenai oregontai phusei
Among the 2007 MacTech Top 25, http://tinyurl.com/2rh4pf
AppleScript: the Definitive Guide, 2nd edition
http://www.tidbits.com/matt/default.html#applescriptthings
Take Control of Exploring & Customizing Snow Leopard
http://tinyurl.com/kufyy8
RubyFrontier! http://www.apeth.com/RubyFrontierDocs/default.html
TidBITS, Mac news and reviews since 1990, http://www.tidbits.com
_______________________________________________
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