string
An attributed string to use as the receiver's title.
Discussion
You can use this method to add styled text and embedded images to
menu item strings. If you do not set a text color for the attributed
string, it is black when not selected, white when selected, and gray
when disabled. ***Colored text remains unchanged when selected.***
Note the marked text at the end. I've not tried it but it looks
promising.
Ron
On 19/10/2007, at 2:03 PM, Greg Hoover wrote:
Not exactly. I don't want it greyed out -- just want it not to be
selectable. I suppose I could subclass to get the same
effect...but am hoping not to have to go that route.
BTW-- It's only greyed out if implement the
validateUserInterfaceItem function.
Greg
On Oct 18, 2007, at 8:57 PM, Ron Fleckner wrote:
On 19/10/2007, at 1:34 PM, Greg Hoover wrote:
I have a menu in an nspopupbutton with several sections (there
are heading items) at various locations. I want to prevent these
items from being selectable, similarly to separator items. Can
somebody point me to a solution? The only alternative I see is
to create a custom subclass.