Newsgroups: comp.sys.next Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!batcomputer!cornell!uw-beaver!ubc-cs!scheme.cs.ubc.ca!wotan From: wotan@scheme.cs.ubc.ca (marko ragnar riedel) Subject: Re: setFontSelStyle (HELP!!!) Message-ID: <1991May4.000623.1510@scheme.cs.ubc.ca> Summary: when will setSelFontStyle work? Keywords: font, style, text object Sender: news@scheme.cs.ubc.ca Organization: Scheme Lab, Computer Science, UBC, Vancouver, B.C., Canada Date: Sat, 4 May 91 00:06:23 GMT 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: :] 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