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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T18:45:52+00:00 2026-05-28T18:45:52+00:00

I am writing a Mac Cocoa application that will manipulate database files, which can

  • 0

I am writing a Mac Cocoa application that will manipulate database files, which can be easily be implemented using NSDocument technology, as they relate directly to disk files.

However the majority of the app will manipulate items within this database. When user opens a database item, a new Window should appear to allow the item to be viewed, edited, saved, so the database item doesn’t directly relate to a disk file. Note that undo and redo is appropriate here.

Is it appropriate to use NSDocument technology for both database windows and database item windows, or is there a better approach?

  • 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-28T18:45:53+00:00Added an answer on May 28, 2026 at 6:45 pm

    I think using NSDocument would be a great choice. It would allow you to take advantage of most of the provided functionality, such as NSDocumentController, undo support, window management, etc. You will have to override some methods, such as loading and saving. It might be difficult to get the “Open Recent” menu to work correctly for these documents (maybe use a custom URL scheme?). The disadvantages of using NSDocument are… none that I can think of. You would have to write everything from scratch, and it would be even harder to integrate them into the rest of the application.

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

Sidebar

Related Questions

So I am writing a mac application that parses SF Giants baseball statistics using
I'm writing an application that runs as a system daemon (root session) for Mac
I'm possibly writing a plugin system for a Cocoa application (Mac, not iPhone). A
I'm writing a Mac application which needs to check whether a given driver has
I am writing a Mac application that plays the streaming video. I'll use Media
I'm writing an application for Mac. I need some code which generates a hash
im writing a video recorder application for mac with cocoa, and have a huge
I am writing a Cocoa Mac app which uses an IKImageBrowserView. When I call
I am writing a small Cocoa application for Mac OS, and my goal is
I'm writing an application that needs to use OpenGL, on the Mac, in 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.