Skip to content

Integrate macOS documents with NSDocument? #3774

@johnzhou721

Description

@johnzhou721

What is the problem or limitation you are having?

I don't see the native NSDocument class being used in Toga Cocoa. This native class (https://developer.apple.com/documentation/appkit/nsdocument?language=objc) has iCloud support for reading and writing documents and also renaming etc. supports.

I understand that Toga does not differentiate a document app anymore however the following dialog is expected by mac users in apps dealing with documents, and we should try to implement that.

Image

Describe the solution you'd like

When an application is a document app, somehow cooperate with the native NSDocument to manage the documents.

Describe alternatives you've considered

Status quo, however as far as I understand that will make Toga document apps not integrateable with iCloud.

Additional context

I'm sorry for the vagueness but as this has to do with apps and windows and stuff I am not in a position to propose a concrete solution.

Metadata

Metadata

Assignees

No one assigned

    Labels

    awaiting detailsMore details are needed before the issue can be triaged.enhancementNew features, or improvements to existing features.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions