Re: NSDocumentController Problems
Re: NSDocumentController Problems
- Subject: Re: NSDocumentController Problems
- From: John Nairn <email@hidden>
- Date: Wed, 11 Sep 2002 08:50:13 -0600
Not sure is this will help, but my application with multiple document
types shows up fine. Some code that has one document type open another
one is simply:
NSDocumentController *dc;
// open results document
dc=[NSDocumentController sharedDocumentController];
resultsDoc=[dc openUntitledDocumentOfType:@"FEA or MPM Results
Document" display:YES];
where the NSString must match the "Name" for the document type set in
the target and not its class. I can not find anything else I had to do
to make it show up.
On Wednesday, September 11, 2002, at 08:02 AM,
email@hidden wrote:
>
Heya guys -- I'm still having some difficulty, and thought I would try
>
again.
>
>
My app handles several different kinds of documents. I have them set up
>
in the Targets:Application Settings panel; they all look good. When I
>
call the sharedDocumentController's openUntitledDocumentOfType:display:
>
method, the document is created, and even added to the
>
sharedDocumentController's documents array. The problem I am having,
>
however, is that I cannot get the document to show up! Is there some
>
flag I need to set? I have set the sharedDocumentController's
>
shouldShowUI to YES, and it makes no difference.
>
>
Any help would be greatly appreciated.
>
>
Thanks --
>
>
-Lucas
>
------------
John Nairn (1-801-581-3413, FAX: 1-801-581-4816)
Web page:
http://www.mse.utah.edu/~nairn
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.