hi jan,
thanks a lot for help fighting the Document class. here's another one
i can't
handle on my own.
Document.open("Help/Help.help.rtf")
Document.allDocuments.do{|d| d.dump}
leave the help doc open and recompile with cmd+k
Document.open("Help/Help.help.rtf") //here returns nil
Document.allDocuments.do{|d| d.dump} //and just seem generally
corrupted
(title/colours etc nil)
traced it this far: detect below doesn't find the doc after recompile.
//private open
initFromPath { arg apath, selectionStart, selectionLength;
var stpath;
path = apath;
stpath = this.class.standardizePath(path);
this.propen(stpath, selectionStart, selectionLength);
if(dataptr.isNil,{
^this.class.allDocuments.detect({|d| d == this})
});
^this.prAdd;
}
don't know if this helps but here's another example with background
colour...
d= Document.open("Help/Help.help.rtf")
d.background_(Color.red)
Document.allDocuments.do{|d| d.dump}
//recompile
Document.allDocuments.do{|d| d.dump} //background= nil but doc still
red
something rotten here...
_f
#|
fredrikolofsson.com klippav.org musicalfieldsforever.com
|#
_______________________________________________
sc-dev mailing list
sc-dev@xxxxxxxxxxxxxxx
http://www.create.ucsb.edu/mailman/listinfo/sc-dev