Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Untitled files and NSApp delegate




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:
http://lists.apple.com/mailman/options/cocoa-dev/idiotsavant2005% 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: http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden
References: 
 >Untitled files and NSApp delegate (From: Dimitri Bouniol <email@hidden>)
 >Re: Untitled files and NSApp delegate (From: Francis Derive <email@hidden>)
 >Re: Untitled files and NSApp delegate (From: Dimitri Bouniol <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.