X Word demo broken
X Word demo broken
- Subject: X Word demo broken
- From: Thomas Harrington <email@hidden>
- Date: Wed, 7 Aug 2002 13:18:47 -0600
I've just been looking over Andrew Stone's "X Word" demo at
<
http://www.stone.com/The_Cocoa_Files/What_s_so_funny.html>.
It's a cool demo, but has anyone else noticed that it's (partially)
broken? It can't read files from disk, even though implementing this
feature is part of the demo.
Apparently -[MyDocument loadDataRepresentation] gets called before the
nib file is loaded. Since the implementation of this method relies on
loading text directly to an NSTextView, it doesn't work. It attempts to
load data into "text", which is unfortunately a nil reference at this
point.
I was able to modify it so that it works, but only after a fair amount
of head-scratching and wondering what I'd missed. Did I miss something,
or is it broken? And does anyone else have a similar demo that works?
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.