setStringValue vs. setTitle on NSButtonCell
setStringValue vs. setTitle on NSButtonCell
- Subject: setStringValue vs. setTitle on NSButtonCell
- From: Andy <email@hidden>
- Date: Thu, 24 Jan 2002 22:19:15 -0500
I have an nsButtonCell (in an NSMatrix) that I'd like to set the title
of directly from an NSAttributedString.
However -setAttributedStringValue: doesn't seem to set the text in the
cell. Similarly -setStringValue: doesn't work. However -setTitle: does
work - but that means I have to drop the attributes from the string.
Basically, I don't understand how the NSCell's
set(Attributed)StringValue interacts with the setTitle on an
NSButtonCell. Is the value meaningful on an NSButtonCell or is it
completely overriden with its title?
--
AndyT (lordpixel - the cat who walks through walls)
A little bigger on the inside
I think we finally found the killer app for Flash: animated stick men