FROM : Mark Alldritt
DATE : Mon Dec 27 18:02:41 2004
Hello,
>> I have an NSToolbarItem that displays a custom NSView. My toolbar item also
>> has a menu representation for use in overflow and text-only toolbar modes.
>>
>> The problem is that when I call NSToolbarItem's setEnabled:NO while the
>> toolbar is in text only mode, the item's label is *not* disabled. I've
>> tried disabling the menu representation's menu item, but that has no effect.
>>
>> How do I get my toolbar item's text mode label to disable?
> Take away it's menu. If it doesn't have a menu it won't validate. I
> also believe there is a way to delegate the item validation, but
> removing the menu is faster and it came to me first.
Thanks for the suggestion. Doing this works great when the toolbar is in
Text Only mode, but breaks the overflow menu. The overflow menu displays as
a small rectangle (10x5 px) which is too small to actually display anything.
I tried passing nil and the original value of NSToolbarItem's
menuFormRepresentation (properly retained) to setMenuFormRepresentation and
both have the same effect.
Cheers
-Mark
---------------------------------------------------------------------
Mark Alldritt Late Night Software Ltd.
Phone: 250-380-1725 333 Moss Street
FAX: 250-383-3204 Victoria, B.C.
WEB: http://www.latenightsw.com/ CANADA V8V-4M9
DATE : Mon Dec 27 18:02:41 2004
Hello,
>> I have an NSToolbarItem that displays a custom NSView. My toolbar item also
>> has a menu representation for use in overflow and text-only toolbar modes.
>>
>> The problem is that when I call NSToolbarItem's setEnabled:NO while the
>> toolbar is in text only mode, the item's label is *not* disabled. I've
>> tried disabling the menu representation's menu item, but that has no effect.
>>
>> How do I get my toolbar item's text mode label to disable?
> Take away it's menu. If it doesn't have a menu it won't validate. I
> also believe there is a way to delegate the item validation, but
> removing the menu is faster and it came to me first.
Thanks for the suggestion. Doing this works great when the toolbar is in
Text Only mode, but breaks the overflow menu. The overflow menu displays as
a small rectangle (10x5 px) which is too small to actually display anything.
I tried passing nil and the original value of NSToolbarItem's
menuFormRepresentation (properly retained) to setMenuFormRepresentation and
both have the same effect.
Cheers
-Mark
---------------------------------------------------------------------
Mark Alldritt Late Night Software Ltd.
Phone: 250-380-1725 333 Moss Street
FAX: 250-383-3204 Victoria, B.C.
WEB: http://www.latenightsw.com/ CANADA V8V-4M9
| Related mails | Author | Date |
|---|---|---|
| Mark Alldritt | Dec 26, 00:28 | |
| The Karl Adam | Dec 26, 00:55 | |
| Mark Alldritt | Dec 27, 18:02 |






Cocoa mail archive

