Someone asked me how to add visual elements to a text field. This someone had several ideas that were “creative” but bat-shit nuts. I’m always hesitant to “give a man a fish” but figured the example I was thinking of was not only a good lesson to Cocoa newbies but a useful bit of code for others to use. It’s a text field cell subclass that draws “total bars” top and/or bottom in several styles and in any color.

The total bar cell can be used in a table, or in a label, in a house, or with a mouse. You can use it free of charge, I’d just like credit, by and large. See the license before you use it, or my friend, I just may lose it …

Have Fun!

The source, license, and a code snippet are available on the JLNTotalBarTextCell page.

 Leave a Reply

(required)

(required)

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

   
© 2011 Joshua NozziJoshua Nozzi is a Cocoa developer for hire.Suffusion theme by Sayontan Sinha