unit testing NSDocument
unit testing NSDocument
- Subject: unit testing NSDocument
- From: Jesse Grosjean <email@hidden>
- Date: Wed, 29 Mar 2006 13:20:00 -0500
I've run into a problem unit testing my NSDocument classes. The
problem is that trying to open a document using the document
controller fails:
[[[NSDocumentController sharedDocumentController]
openDocumentWithContentsOfURL:documentURL display:YES] retain];
I think the reason that this is failing is because the executable is /
Developer/Tools/otest and that doesn't have any Info.plist associated
with it that maps file extensions to my document classes. And so the
sharedDocumentController doesn't know what class it should use to
open the document URL. So my question is does anyone know how to make
the sharedDocumentController load my apps Info.plist when run from
within the otest tool?
Thanks,
Jesse
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden