More Java posts
May 15, 2005
No document could be created.

For fun I'm messing around with Cocoa programming using the book Learning Cocoa (actually the 2001 first edition that I bought cheap from Half Price Books) and writing the examples in Java. At the moment I've got to the chapter on Cocoa's Multiple-Document Architecture and I spend a frustrating couple of hours trying to get the simple RTF example to work.

Whenever I started the application I would get a popup saying "No document could be created." and the Run Log window would show "The DocumentType type doesn't map to any NSDocumentClass.". I'd moved the NSDocument subclass into a package so I expected that when I set up the Document Class entry in the Document Types configuration I would enter com.zanthan.apple.MyDocument. Not so, the correct way to do this is to enter com/zanthan/apple/MyDocument. This information I found from this cocoadev post.

Posted by Alex at May 15, 2005 12:23 PM
Comments
Alex, You would be much better off if you stick to drinking Cocoa. It's probably more productive. How's life been treating you since I last saw you? Phil Posted by: Phil on July 20, 2005 09:56 AM
pet supply pet supply store pet medication discount pet supply cheap pet supply online pet supply pet meds pet product pet health insurance pet medicine pet health care pet care pet medicine revolution pet product Posted by: pet supply on April 20, 2006 03:56 PM
Post a comment
Name:


Email Address:


URL:


Comments:


Remember info?