Questions tagged [document-based]

Document-based application design enables users to create and manage documents containing their data. In cocoa, this is enabled via the "document architecture" subsystem which provides inbuilt support for applications that manage documents.

112 questions
1
vote
1 answer

What does "Document is distributed as a bundle" mean?

I am using Xcode 7.3.1 to create a Cocoa document based application. I notice that in the Document Types info panel there is an option that I don't understand. It says "Document is distributed as a bundle" and it looks like this. I found that this…
William Rosenbloom
  • 2,506
  • 1
  • 14
  • 37
1
vote
1 answer

In a document-based app how do you prevent data loss when the user accidentally pressed cmd+w rather than cmd+s?

My document-based app immediately terminates the document upon cmd+w and it is not saved. How can I react to this and either prompt for saving the document or automatically save it?
iamjustaprogrammer
  • 1,634
  • 2
  • 17
  • 34
1
vote
1 answer

Cocoa document-based app: Notification not always received by observer

I hope somebody can help with my notification problem. I have a notification which looks to be set up correctly but it isn’t delivered as expected. I am developing a document based app. The delegate/ document class posts the notification when it…
1
vote
2 answers

Document Based Application, preinitialize window (enter serial, buy, trial)

I need to create several windows before NSDocument is loaded, or create a window that blocks NSDocument window and top menu. I tried several solutions - but they didn't work right. modal window, one after another. there were some problems with…
Remizorrr
  • 2,322
  • 1
  • 17
  • 25
1
vote
1 answer

Cocoa document application, what is the App Controller?

I'm trying to understand what the "App Controller" is in a document based application. Apple doesn't mention it here. In the book I'm reading (Cocoa Programming for Mac OS X fourth edition), the author creates an app controller for handling a…
user3956212
  • 359
  • 2
  • 14
1
vote
2 answers

Is it better to use a relational database or document-based database for an app like Wufoo?

I'm working on an application that's similar to Wufoo in that it allows our users to create their own databases and collect/present records with auto generated forms and views. Since every user is creating a different schema (one user might have a…
mboyle
  • 97
  • 6
1
vote
0 answers

Custom fileextension for document based application

I have a document based application that makes use of core data. Basically the file it is saving it a sqlite file with the ending .binary. I would need to change this ending to a custom ending so that it is recognized by the users. For example .suv2…
user2452250
  • 777
  • 2
  • 11
  • 26
1
vote
0 answers

Cocoa Core Data Document Based Application underlying or read/write file type

I am writing a data editor tool for some of our mobile apps. Right now, I'm setting it up as a Document-based Core Data application. We're going to want to save the data as plain JSON or XML for including with the apps. Unfortunately, I can't seem…
s73v3r
  • 1,751
  • 2
  • 22
  • 48
1
vote
2 answers

Open untitled file in Document-based app

I want my app to open new untitled document every time it starts. It worked in 10.6 but now I upgraded to 10.8 and when I close the window with Command+W and then restart the application it won't open any windows. How do I make it open a new window…
Ecir Hana
  • 10,864
  • 13
  • 67
  • 117
1
vote
1 answer

Xcode with OpenGL: new windows do not automatically become active context

I have a strange problem when I create a Documents Based Xcode project with a NSOpenGLView. The application works fine with a single document, responding to mouse clicks. When you choose File/New to open up a second document a new front window…
1
vote
1 answer

Confused on Document Based iPhone App Guide

I'm writing one of my first iPhone apps - a simple way of remembering things about people. I'm following the iOS document called "Document-Based App Programming Guide for iOS" and I've gotten to the point where we query the local device and iCloud…
Miles
  • 1,615
  • 4
  • 17
  • 42
0
votes
1 answer

Document-based-like application + updating fields/menus/etc when switching document?

I have an application with multiple documents opened at once (as different tabs), but not implemented the Cocoa way, with NSDocument etc So, let's say, that application is a text editor : e.g. an NSTextView in each document/tab and a menu (in the…
Dr.Kameleon
  • 22,532
  • 20
  • 115
  • 223
0
votes
1 answer

NSTextField won't accept input after displaying once

I am developing a document based cocoa app. The startup interface is modeled after GarageBand: A welcome screen is displayed, which shows one of two alternating views (switched through a segmented control): "Create New Project" and "Browse Recent…
Nicolas Miari
  • 16,006
  • 8
  • 81
  • 189
0
votes
1 answer

How does a document-based database and CouchDB in particular handle ID references?

I really like the document-based approach of storing data like blog posts as a whole document with all information needed saved inside of it. Therefore the author´s username is stored as plain text. The author himself has his own document with…
Amberlamps
  • 39,180
  • 5
  • 43
  • 53
0
votes
1 answer

Core Data document based multiple nib based on selection

I'm building a Core Data document based application. In the app there's a main view (NSTableView) and an inspector view. Both views are separate nib files. The content of the inspector view should depend on the selected row in the main view. I have…
Rens
  • 269
  • 3
  • 11