Re: Enable Buttons
Re: Enable Buttons
- Subject: Re: Enable Buttons
- From: "M. Uli Kusterer" <email@hidden>
- Date: Sat, 2 Jul 2005 11:50:03 +0200
At 10:03 Uhr +0200 02.07.2005, Gerriet M. Denkmann wrote:
From: "M. Uli Kusterer" <email@hidden>
As a starting point, you could use something like:
http://www.zathras.de/angelweb/blog-validate-user-interface.htm
but extend it with a check for a responder that accepts this message.
But it would probably be rather inefficient.
By the way there are these NSUserInterfaceValidations and
NSValidatedUserInterfaceItem protocols. Sound promising, but I don't
understand it. Looks like this is intended only for NSToolbarItem
and NSMenuItem; the latter of which does not need this, as there is
validateMenuItem already.
A quote from the article linked to above:
If you do not provide -validateMenuItem: or -validateToolbarItem:,
AppKit will instead call -validateUserInterfaceItem: for both of
them. So, if you have menu items that are also available on the
toolbar, this method lets you use the same method to validate them
both.
<<
--
Cheers,
M. Uli Kusterer
------------------------------------------------------------
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de
_______________________________________________
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