discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: validateMenuItem: called too often?


From: Dr. Nikolaus Schaller
Subject: Re: validateMenuItem: called too often?
Date: 14 Feb 2005 00:46:48 -0800

Dirk Lattermann <dlatt@alqualonde.de> wrote in message 
news:<mailman.1947.1108306653.2841.discuss-gnustep@gnu.org>...
> I just realized that validateMenuItem: (here for the Save... menu item 
> with the saveDocument: action) is called every time the mouse enters 
> or exits a TextField, a TableView, a Browser and several other UI 
> items. This is an awful lot! Is it really needed? In which cases does 
> it make sense to change the enabled-status of a menu item or pop up 
> cell based on the mouse entering or exiting an UI item?

IMHO just before a menu or submenu is being shown first.
Well, it could also be called every 500ms while a menu is open (to
dynamically enable/disable items) but then, menu items have to be
redrawn as well.

-- hns


reply via email to

[Prev in Thread] Current Thread [Next in Thread]