validate custom view toolbar item

  • Hello,

    I have a toolbar item with a view. According to the documentation,
    validate has to be overridden to enable/disable it. However, I want to
    use the value returned by validateToolbarItem: to enable/disable it,
    but can't figure out where to get this value within the subclass of
    NSToolbarItem. Is there a way to do this?

    Thanks,
    Mitchell Livingston
  • Right after I sent this, I realized I could just call
    validateToolbarItem: on the item's target.

    On Nov 27, 2007, at 7:59 PM, Mitchell Livingston wrote:

    > Hello,
    >
    > I have a toolbar item with a view. According to the documentation,
    > validate has to be overridden to enable/disable it. However, I want
    > to use the value returned by validateToolbarItem: to enable/disable
    > it, but can't figure out where to get this value within the subclass
    > of NSToolbarItem. Is there a way to do this?
    >
    > Thanks,
    > Mitchell Livingston
previous month november 2007 next month
MTWTFSS
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30    
Go to today