Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!lll-winken!elroy.jpl.nasa.gov!usc!oxy!schorsch From: schorsch@oxy.edu (Brent William Schorsch) Newsgroups: comp.sys.mac.programmer Subject: styl resources and styled textedit Message-ID: <139816@tiger.oxy.edu> Date: 27 Jan 91 05:13:25 GMT Organization: Occidental College, Los Angeles, CA 90041 Lines: 20 Hello bit twiddlers. I have been experimenting without success in using 'styl' resources (loaded from my resource fork) in my text edit records (created with TEStylNew(...)). There's not much documentation that I have run accross and my assumptions appear to be flawed;it would seem like I could call h = getresource('styl', id); detachresource(h); setstylHandle(h, myTEHandle); Both the text (loaded from resource fork and entered via TESetText) and the 'styl' resources were created directly in ResEdit so I'm confident these resources are not to blame. However, I repeatedly crash. (in no easily traceable manner). Am I simply missing something or explicitly doing something improper? Please respond if you've got any clues... Thanks. +--------------------------------------------------------------------------+ Ando Moon. Linker Systems, Inc. "I think, therefore I Think C." +--------------------------------------------------------------------------+