problem with buttons in toolbar

  • Hello,

    I have toolbar items with the view set to a button. I overrided
    NSToolbarItem's validate: method to:

    - (void) validate
    {
        [self setEnabled: [[self target] validateToolbarItem: self]];
    }

    Besides that it's the standard toolbar item. The buttons work fine
    when showing the icon, and validate correctly. However, when set to
    text-only they all stay disabled. I cannot figure out how to get them
    to validate and enable. Any help would be appreciated.

    Thanks,
    Mitchell Livingston
  • Again, I figure this out right after sending. I had to override
    menuFormRepresentation:

    On Dec 3, 2007, at 8:27 PM, Mitchell Livingston wrote:

    > Hello,
    >
    > I have toolbar items with the view set to a button. I overrided
    > NSToolbarItem's validate: method to:
    >
    > - (void) validate
    > {
    > [self setEnabled: [[self target] validateToolbarItem: self]];
    > }
    >
    > Besides that it's the standard toolbar item. The buttons work fine
    > when showing the icon, and validate correctly. However, when set to
    > text-only they all stay disabled. I cannot figure out how to get
    > them to validate and enable. Any help would be appreciated.
    >
    > Thanks,
    > Mitchell Livingston
previous month december 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
31            
Go to today