Disabling save panel's "Save" button
Disabling save panel's "Save" button
- Subject: Disabling save panel's "Save" button
- From: "Paul J. Lucas" <email@hidden>
- Date: Sun, 18 Sep 2005 14:49:07 -0700 (PDT)
I've added some custom NSTextFields to a save panel to represent
image width X height. I've figured out how to trap every
keystroke so that editing one (say, width) automatically
updates the other (in this case, height) so that the aspect
ratio is preserved. It works great.
But what I'd also like to do is to disable the Save button if
either value is 0. However, I can't fiure out how to get access
to the Save button to disable it. There's no appropriate method
on the NSSavePanel.
So... how can I disable/enable the Save button whenever I
please?
- Paul
_______________________________________________
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