Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Text coloring



Hello,

I am working on a small game and I would like to dynamically change the color of some words contained in a NSTextView as the user types them. For instance, as the user types "the grass is green, the sky is blue and
", I would like to color the "green" word in green and the "blue" word in blue. I have tried to do that in several different ways but it is rather slow. Does anyone know a good technique to do this job?

Matthieu


______________________________________________________________________________
ifrance.com, l'email gratuit le plus complet de l'Internet !
vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP...
http://www.ifrance.com/_reloc/email.emailif




Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.