NSToolbar(item) quirk
NSToolbar(item) quirk
- Subject: NSToolbar(item) quirk
- From: Ed <email@hidden>
- Date: Thu, 3 Feb 2005 16:33:10 +0000
Hi all!
I've got a Cocoa Multi-Document application (standard project kind),
and each of my MyDocuments has a toolbar on its associated window. To
ensure my toolbar button only becomes active when there is text
selected in an NSTextView in the window, I'm using simple validation
(If the selection length is 0, then it's not active, essentially).
However, when I have multiple documents open, if I select text in one,
all of the ToolbarItems of that type in the application become
activated! Not only that, but I can actually click on them (though if
I click on the window, they stop becoming deactivated, as they should
be)!
Has anyone come across this before and have an elegant solution, or I
am I just going to have to give each button its own string identifier
(using a random number gen, perhaps?)
Thanks,
ed
_______________________________________________
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