Re: Problem with O'Reilly Learning Cocoa book?
Re: Problem with O'Reilly Learning Cocoa book?
- Subject: Re: Problem with O'Reilly Learning Cocoa book?
- From: Carlos Weber <email@hidden>
- Date: Tue, 11 Sep 2001 07:49:01 -1000
On Monday, September 10, 2001, at 11:18 , Drew Cunningham wrote:
I completed chapter 11 of O'Reilly's Learning Cocoa book TWICE to
create a simple RTF editor. There are fewer than 20 lines of code. It
gives me a "NEW - Can't create new document" error when I try to open a
new document. I also noticed a "Sep 11 03:51:44 Simple RTF Edit[493]
_windowDeviceRound: error creating graphics ctxt object for ctxt:29427,
window:-1
I just typed it in; it worked fine. You'll get a warning if you don't
declare the -loadTextViewWithData: method in the MyDocument.h file
(which the book doesn't explicitly tell you to do). From your
description of what happens I would suggest double-ckecking your
target's Application Settings; in particular make sure you have
specified the Document Class for you document type as "MyDocument" (or
whatever you are calling your NSDocument subclass).