• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Enable Buttons
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >Re: Enable Buttons (From: "Gerriet M. Denkmann" <email@hidden>)

  • Prev by Date: Re: What's the difference between a C++ and ObjC String?
  • Next by Date: Re: Core Data docs clarification...
  • Previous by thread: Re: Enable Buttons
  • Next by thread: Floating panel visibility
  • Index(es):
    • Date
    • Thread