• 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
unit testing NSDocument
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: unit testing NSDocument
      • From: Chris Hanson <email@hidden>
  • Prev by Date: Re: NSWorkspace launchedApplications
  • Next by Date: Re: Keyboard Shortcut without Menu Item
  • Previous by thread: Re: optimizing bindings
  • Next by thread: Re: unit testing NSDocument
  • Index(es):
    • Date
    • Thread