• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Problem with O'Reilly Learning Cocoa book?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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).


References: 
 >Problem with O'Reilly Learning Cocoa book? (From: Drew Cunningham <email@hidden>)

  • Prev by Date: Re: objective-Fortran
  • Next by Date: Re: Creating NSBitmapImageRep from NSImage
  • Previous by thread: Re: Problem with O'Reilly Learning Cocoa book?
  • Next by thread: Media School
  • Index(es):
    • Date
    • Thread