• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
setStringValue vs. setTitle on NSButtonCell
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: setStringValue vs. setTitle on NSButtonCell
      • From: Greg Titus <email@hidden>
  • Prev by Date: Re: Weird calculation
  • Next by Date: Subclassing NSDocumentController
  • Previous by thread: Re: Saving Window positions in Cocoa
  • Next by thread: Re: setStringValue vs. setTitle on NSButtonCell
  • Index(es):
    • Date
    • Thread