Re: problems with sheets
Re: problems with sheets
- Subject: Re: problems with sheets
- From: John Stiles <email@hidden>
- Date: Fri, 6 May 2005 17:32:50 -0700
On May 6, 2005, at 5:09 PM, Ken Victor wrote:
the app i'm currently working on has a single modal window (displayed
via [NSApp runModalForWindow]). when the user selects the default
button on this window, i display a sheet to get a password from the
user. this sheet has 2 secure text entry fields and cancel button and
a default ok button. when the user clicks the ok button, i validate
the password fields. if they are not valid, i then display an error
sheet (NSAlert beginSheetModalForWindow). this error sheet has only a
single default ok button on it.
i realize that this may be counter to the guidelines in that it is a
sheet on top of a sheet, but it seems to make sense to attempt to do
it this way. however, it doesn't work. there seem to be 2 problems:
are my problems most likely caused because cocoa just doesn't support
nested sheets?
Yes. This actually came up a few weeks ago and spawned a long thread
(let's not repeat that) about the evils of nested sheets. Basically, it
seems rational from a programming/analytical perspecive, but it is
nasty from an end-user perspective, so don't do it :)
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden