swift - Change color of NSTextField -
i'm trying code easy example modify color of nstextfield playing green , red colors answer or wrong. cannot achieve cause obtained error message when using apple guide page nstextfield, appkit framework ref.
i'm trying use code :
@iboutlet weak var mensajeresultado: nstextfield! when trying colorize without success let rango = nsrange(location: 0,length: 0) mensajeresultado.superclass.settextcolor(nscolor.redcolor(), range: rango)
shouldn't be:
mensajeresultado.textcolor = nscolor.redcolor()
?
Comments
Post a Comment