[Adium-devl] -[AIAccountMenu menuNeedsUpdate:] - why do we need to rebuild the menus so often?

Evan Schoenberg evan.s at dreskin.net
Tue Nov 20 20:16:36 UTC 2007


Every time a command+key combination is pressed,  menuNeedsUpdate: is  
called on the delegates of each item in the various menu bar menus.  
This includes the account menu items.  This triggers a rebuild of the  
submenus in -[AIAccountMenu menuNeedsUpdate:]

We're therefore rebuilding the submenus off the account menu items  
really, really often - practically polling for changes to the account- 
specific menu items.  I assume this has to do with xmpp server- 
provided actions, since it was added along with those.  Is there a  
better way we could approach this, such as finding out when a change  
is needed and flipping a flag to rebuild next time it's needed?

Cheers,
Evan




More information about the devel mailing list