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.
Questions tagged [document-based]
112 questions
0
votes
2 answers
How can I properly prepare XML files for document-based database?
How can I move @attributes to the root of that element when converting XML to JSON in PHP?
The simplest way I found to convert my XML file is to json_encode. But I would like to get rid of the @attributes so id and name for example would be directly…

Jeremy Dicaire
- 4,615
- 8
- 38
- 62
0
votes
1 answer
Make custom document display correct "Kind" Attribute in macOS Finder instead of "DocumentType"
In a document-based app, I create files with a custom UTI and extension. I declare both of these in the target's Info>Document Types and Info>Exported UTIs panes, as captured in the image below.
I am able to locate those files in finder, and they…

Steven Hovater
- 1,389
- 2
- 12
- 25
0
votes
1 answer
Cocoa CoreData and non-Document-Based Application
i have a Problem wich drives me crazy...
I want to "write" a Cocoa CoreData Application, write is not the exact term, because the Application should be created with Bindings.
It was no Problem to create a Document-Based Application, it works…

Dennis Stritzke
- 5,198
- 1
- 19
- 28
0
votes
0 answers
Cocoa document-based app edited state: how can I override its default behavior?
I have a document-based application. The app doesn't use Core Data. It has 2 TextFields: one used as an area to edit document (called it main TextField), one used as a search box. By the default, when I type in any of these TextField, the app auto…

Bao Nguyen
- 137
- 9
0
votes
1 answer
Cocoa document based app crashes when window save popup menu disappeared after alert panel appears
OS X 10.10.3.
What can cause the following crash in Cocoa document based document app? It occurs only when a window save popup panel disappeared:
if a "file already exists" alert sheet appears:
UPDATE: sometimes the app crashes also when simply…

Igor
- 880
- 1
- 7
- 11
0
votes
1 answer
IOS Multi-document application
I'm quite new to iOS apps development. I'd like to develop a document-based application, which would handle many documents at a time. They should be opened in tabs and the app window should have a common header toolbar for all the tabs.
What is the…

schmidt9
- 4,436
- 1
- 26
- 32
0
votes
1 answer
Xcode Document Based Application Save FIile
So I was messing around with the Document Based Application, and I'm trying get the save file to work. I have a file format save to .lgre and whenever I hit save, I'll select location, and then nothing happens except that I get this in that…

TheCommonGiraffe
- 23
- 2
- 7
0
votes
1 answer
Correct way to make an NSView the firstresponder to all Undo/Redo actions irrespective of active/focused view/control
I have a standard document based application whose main window has two NSViews.
Is it possible to make NSView1 the firstresponder for Undo/Redo actions even when NSView2 is the focused view.
Is it possible to have the context for Edit menuitem…

ClaraU
- 877
- 3
- 11
- 22
0
votes
1 answer
Document based Cocoa apps and controller interaction
I'm trying to make an application for managing and opening PDF files. It's document based. In my UI designer I've got an NSSplitView with an NSTableView on the left and a PDFView (from PDF Kit) on the right.
I have a controller class for my…

Pancakes
- 149
- 2
- 7
0
votes
1 answer
Document-based application icon
there is something strange with icon of my document in cocoa. In Target - Info - Document Types, I set up png icon which is 512 x 512. When I run my application, save my document, there is white icon on my document, not which i set. Any ideas?

Nikita Zernov
- 5,465
- 6
- 39
- 70
0
votes
1 answer
How to make a Cocoa Document-Based App launch with multiple different windows?
I have a document based app in cocoa with three xibs for different toolbox windows. At app launch I would like the toolboxes to be visible very similar to Adobe Illustrator where the toolboxes are visible on either side. To do this would I need to…

Kenneth P. Hough
- 577
- 2
- 8
- 25
0
votes
1 answer
Document-Based App Examples
I'm building an Integrated Development Environment (IDE) application for Mac OS X.
When creating a new Mac OS X Cocoa Application should I select (check) Create a Document-Based Application?
What are some examples of document-based apps?

ma11hew28
- 121,420
- 116
- 450
- 651
0
votes
1 answer
cocoa sheet on document-based app
I got a dialog instead of sheet.It worked when the app was not document-based.
Now it doesn't work.
- (IBAction) showSheet:(NSWindow*)window
{
// User has asked to see the dialog. Display it.
NSLog(@"%@", self.contragentsSheet);
if…

user2414590
- 123
- 1
- 7
0
votes
1 answer
Programmatically Show Versions Popup Menu for Document-Based App
We have a custom window and titlebar for a document-based app, and we would like to support versioning with the standard disclosure button that appears beside the document title. Here is an image of the disclosure button and the popup menu when it…

Dalmazio
- 1,835
- 2
- 23
- 40
0
votes
2 answers
Differentiating between new documents and restored documents in a Cocoa application
In my project I need to be able to tell the difference between documents created by the user and those restored at application launch by restoreStateWithCoder because there are some thing s that need to be done for new documents, but not restored…

John Wells
- 1,139
- 1
- 10
- 27