Toolbar Item Validation in a Panel
Toolbar Item Validation in a Panel
- Subject: Toolbar Item Validation in a Panel
- From: "R. Scott Thompson" <email@hidden>
- Date: Thu, 21 Oct 2004 14:37:38 -0500
I've got some code that puts up a modal dialog. In the modal dialog is
a text edit control (NSTextView) which allows rich text.
If the color panel and font panel are both up before the dialog is
displayed then they work well with the editable text. I wanted to add
a toolbar to the panel and put in the standard color and font toolbar
items.
Both of the items are added to the toolbar, but they are never enabled.
From the documentation it appears that the toolbar item is supposed to
send it's target a "validateToolbarItem:" message, however, for the
standard toolbar items like fonts and colors, I don' t have any control
over the target. (Well, I suppose I could force the issue and probably
jam whatever target I like in there... but conceptually I don't own the
target of those items).
Does anyone know how I can go about getting my toolbar items enabled?
--
Macintosh Software Engineer for Hire (Contract or Full-Time)
Visit my resume at <
http://homepage.mac.com/easco/RSTResume.html>
_______________________________________________
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