Skip navigation.
 
mlvalidateToolbarItem and multiple documents
FROM : Joe Esch
DATE : Tue Dec 07 20:02:12 2004

I have a document based Cocoa application that has a toolbar on the
main document window.  In the controller, I implement
validateToolbarItem to enable or disable some of the toolbar items
depending on the state of the document.  The problem is that this seems
to affect the state of the items on all toolbars - not just the one
that is associated with the controller that is validating them.  I.e.
when I enable the toolbar item it is enabled in the toolbar of all
document windows - not just the one for the controller that is doing
the validation.  This is for simple image toolbar items.

Is there a way to get this validation to apply only to the toolbar
associated with the current document without using a custom view
toolbar item and some other kind of validation?

Related mailsAuthorDate
mlvalidateToolbarItem and multiple documents Joe Esch Dec 7, 20:02
mlRe: validateToolbarItem and multiple documents Arvid Nilsson Dec 12, 17:32