[comp.sys.next] setFontSelStyle

wotan@scheme.cs.ubc.ca (marko ragnar riedel) (05/04/91)

Does anyone know why setSelFontStyle appears to fail sometimes? I've got a scroll view 
with a text object attached to it. With "appdidinit" I reset the text object's text filter
function. In that filter function I watch for paranthesis, key words, etc. ... The paren-check
works - my code finds the '(' corresponding to a ')' and highlights it. On the other hand,
when I attempt to italic or bold some key words (such as 'define', 'case' etc.), using [textObject
setSel:<location of my word> :<end of my word>] and [textObject setSelFontStyle:NX_ITALIC], nothing
changes (but my word does get selected). What is happening? I tried adding the FontManager menu, and
I also have "Monofont" turned off (in IB), but to no avail.
Help!!!!


Marko