06-29-2010, 02:36 PM #1
Most efficient way of repeatedly drawing attributed text to view
- Member Since
- Jun 29, 2010
Sorry for being a newbie, Please help!
I am creating a fairly simple app that layers on iTunes, using its Apple Events stuff. That side is going well...
My Question is, my app, because it uses the strings of the currently playing Artists and Song Name etc. this could change rapidly in my case (less than every second, updates of the playing track strings can occur this fast) I was wondering what the most efficient way to draw to the strings with font attributes, background and also alignment...? I am looking to save some time too!
I tried passing NSAttributedStrings to TextFields (Set out as Labels in IB); fine for initial uploading of string, but with the constant updating, it obviously does not really enjoy it. I tried just using:
For example, but it looses all the formatting from the initial NSAttributedString. Is there anyway to lock these atributes and just change the text that is displayed?
I have tried implementing NSTextView classes also, however they do not seem to offer both, font, background color changes and alignment... I could be wrong! (there are a few deprecated methods and properties for example)
Any reply would be appreciated, I know how first posts can drown!!
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
By BrunoIam in forum Images, Graphic Design, and Digital PhotographyReplies: 6Last Post: 10-12-2012, 07:11 AM
By iLindzo in forum OS X - Apps and GamesReplies: 2Last Post: 07-28-2011, 07:49 PM
By gonche1124 in forum OS X - Development and DarwinReplies: 0Last Post: 06-03-2010, 03:23 PM
By alicenfm in forum Images, Graphic Design, and Digital PhotographyReplies: 1Last Post: 11-06-2008, 10:43 PM