FROM : R. Scott Thompson
DATE : Thu Oct 21 21:37:38 2004
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>
DATE : Thu Oct 21 21:37:38 2004
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>






Cocoa mail archive

