Re: Untitled files and NSApp delegate
Re: Untitled files and NSApp delegate
- Subject: Re: Untitled files and NSApp delegate
- From: "I. Savant" <email@hidden>
- Date: Fri, 30 Jun 2006 09:40:00 -0400
It sounds like you're making this far more difficult than needed.
If you don't want to handle documents, use a standard Cocoa
application (non-document-based). If you want to handle documents,
use a Cocoa document-based application. You don't have to implement
everything with your NSDocument subclass. Just implement what you
need to get the document opened and get at its contents the "Cocoa Way".
A more focused response, however, will probably require more
information from you as to exactly what you're doing with the
contents of these documents. If you're going to manipulate them at
all, you really should be using the document architecture and you're
only making it harder on yourself trying to short-circuit it.
Unless I've completely misunderstood your request, my advice to
you is to stop where you're at and review the document architecture,
then reevaluate your approach. This architecture practically does
everything for you when dealing with opening / manipulating documents
of any kind; it's unlikely that bypassing it altogether is the right
approach for your project.
I hope this is helpful.
--
I.S.
On Jun 30, 2006, at 3:54 AM, Dimitri Bouniol wrote:
If your NSDocument subclass is not named "MyDocument", you need to
change its name where you find it in the Info.plist of your
project for the key NSDocumentClass :
[...]
<key>NSDocumentClass</key>
<string>MyDocument</string>
The thing is that I don't want to use NSDocument at all. Is there a
way to have the file types in Info.plist (for the Finder), but not
use NSDocument, without starting a new project?
--
Dimitri Bouniol
email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40gmail.com
This email sent to email@hidden
_______________________________________________
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