Re: New document does NOT open at program start!
Re: New document does NOT open at program start!
- Subject: Re: New document does NOT open at program start!
- From: James Derry <email@hidden>
- Date: Fri, 25 Oct 2002 16:43:56 -0400
Thanks for the reply, Bill. That answer seemed to cover everything! And I'm
ashamed that it seems fairly obvious now that you told me about it. I
remember mucking about in there, and it turns out that in "Document Types" I
made the single entry there a "viewer" instead of an "editor." Now that I've
fully tested that out, the "role" setting seems more important.
I'll reiterate that for anyone who searches this list in the future for an
answer: if your only document types are set at Viewer rolls instead of
Editor rolls, an untitled document won't automatically open. That's even
obvious -- if you're not editing, what untitled document should there be.
Looks like I'll investigate the info.plist entries (especially document
types) a little more carefully instead of taking them at face value!
Thanks again,
Jim Derry
--me
Bill Cheeseman helpfully replied,
>
> how does the application know what document to
>
> create at startup? Does it just go looking for all of the linked-in
>
> NSDocument subclasses and pick the first one? I.e., if I wanted to create a
>
> MyNewDocument class, what would I have to do to force NSApplication to
>
> choose one instead of the other?
>
>
There is an entry in Project Builder's Application Settings where you must
>
specify the class of the main application document type: the document to be
>
opened by the application at startup. (In Jaguar's version of PB, the
>
Application Settings is called Info.plist Entries.)
_______________________________________________
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.