Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6886159
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T05:43:29+00:00 2026-05-27T05:43:29+00:00

I am planning to create a project-based Mac application. It has its own project

  • 0

I am planning to create a project-based Mac application. It has its own project file format and is currently able to read and handle it. That’s already the problem of the whole story: I open the project file and not the files each by each/individually.

This means the NSDocument architecture thinks the user is editing the project file. He/She isn’t. Currently my application takes over the reading part by opening the project files each by each manually but it’s hard to implement anything else like Autosave or Versions for the files in the project because they just refer to the project file.

So my question is: How do I use NSDocument in this kind of project architecture so it actually knows I am editing just a part of the project or a completely different file? Or is there a different approach I should use?

Currently the options “Save” and “Revert to Saved” are disabled. Why does this happen? Normally the options should be enabled for the project file.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T05:43:29+00:00Added an answer on May 27, 2026 at 5:43 am

    You seem to be assuming that a document-based app can handle only one type of document. That is not the case, the document architecture can handle as many different types of document as you like.

    Just create two different subclasses of NSDocument, one for your project file and one for your actual documents. You’d need to make edit your Info.plist to add the new document type and associate it with its own file extension/UTI.

    Doing it this way makes it very straightforward for both types of document (project file and document file) to reap the benefits of the document architecture.

    Things can get a little more complicated if you are handling the documents by loading them into a parent project window (à la Xcode). If that is the case then you would need to write custom NSDocumentController and NSWindowController subclasses.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there any ways to create my own audio file format? I'm planning to
I'm currently planning out a project involving creating a shell replacement for Windows (based
im planning to create a movie file that might have over 16,000 frames?i know
I'm planning to create a simple gadget to create a TO DO list application.
I am planning to create my own custom Object Mapper for a type using
I'm planning to create a simple web based interface that stores administration input in
I am planning to create a pricing matrix for a project in Rails. It's
I am planning to create different layers, so in my Visual Studio Project, I
i am currently in the process of planning a social network project of mine.
I've got a medium scale project (a turn-based game) that's currently written in C/C++.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.