problems with sheets
problems with sheets
- Subject: problems with sheets
- From: Ken Victor <email@hidden>
- Date: Fri, 6 May 2005 17:09:33 -0700
Title: problems with sheets
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:
the default button for the enter password sheet stays
"blue" even tho it has a sheet on top of it -- thus, the
user can see 2 blue buttons: on the enter password sheet AND on the
bad password sheet.
clicking anywhere in the bad password sheet, including
inside the defalut ok button, beeps. but typing return (or enter)
appropriately ends the bad password sheet.
are my problems most likely caused because cocoa just doesn't
support nested sheets? or is it likely i have a bug somewhere else in
my code?
thanx,
ken
_______________________________________________
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