• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Toolbar Item Validation in a Panel
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: Toolbar Item Validation in a Panel
      • From: Amar Sagoo <email@hidden>
  • Prev by Date: Fuzzy string searching. String distance algorithm based on a tree technique?
  • Next by Date: Re: Formatter for NSTableView
  • Previous by thread: Re: Fuzzy string searching. String distance algorithm based on a tree technique?
  • Next by thread: Re: Toolbar Item Validation in a Panel
  • Index(es):
    • Date
    • Thread