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

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -