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 5999805
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T00:36:14+00:00 2026-05-23T00:36:14+00:00

I am about 90% sure my program would benefit from using the document framework

  • 0

I am about 90% sure my program would benefit from using the document framework in Cocoa but there is one thing that I am unsure of.

In all the examples I have seen, The NSDocument subclass always represents the file being saved which isn’t entirely appropriate for my application.

The file that will be saved to disk in my application will be a collection of the entities that will be edited within the program. When a new file is created the user will be able to edit the individual entities contained within that collection which will require state and change tracking (Save, undo etc).

Will a document based application work this way or will I be constantly fighting the framework?

Updated to make my question clearer:

I was planning on saving the file as a bundle as it will certainly make it easier to manage the separate entities contained within the file but doesn’t really address my question.

Think of a program like Microsoft Access; The file is the database but the documents are things like forms, reports, queries and macro’s. Each item is edited in a separate document window and changes can either be saved or undone to the individual documents but it is the whole database (including all the forms, reports and queries) that is saved.

  • 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-23T00:36:15+00:00Added an answer on May 23, 2026 at 12:36 am

    I am not sure wether this apply to your application, but you could associate your NSDocument with a package, so that your document would be not just a file, but exactly the collection of files you require to work on.

    When I worked on this a few years back, it was not so trivial to get this working, but in the end it could be done. I hope that things have got easier by now, but anyway, if it is suitable for your requirements, I would give it a try.

    This S.O. topic will give you a hint at what must be changed in the default NSDocument.

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

Sidebar

Related Questions

I'm sure there are a million posts about this out there, but surprisingly I'm
I'm just learning about SVG, and it seems great but I'm not sure about
This should be easy, but I'm not sure how to best go about it.
I'm not sure if many people know about this text-editor? jEdit was kinda big
When verbally talking about methods, I'm never sure whether to use the word argument
I'm not sure how tests first works and I'd like to hear arguments about
About 2 years ago I dropped windows from my home PC and switched 100%
When connecting to an SQLite database from Python (using Python 2.6), what strategies are
I am not sure about this code. This structure is correct? success: function(data, data1,
I am not really sure about the difference between CDF (Cumulative Distribution Function) and

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.