首页
学习
活动
专区
圈层
工具
发布
    • 综合排序
    • 最热优先
    • 最新优先
    时间不限
  • 来自专栏macOS 开发学习

    Mac OSX 给现有的应用追加基于文档的功能

    添加一个继承自NSDocument的类: 添加继承NSDocument的类文件 2. : 这里要填写你继承自NSDocument的类名,要在你的类名前加上命名空间(ObJective-C不用$(PRODUCT_MODULE_NAME)<

    85320发布于 2018-08-23
  • 来自专栏221-B

    逆向从 Instruments 中获取 GPU 数据

    在逆向过程中发现打开文档用的是NSDocument,-showTemplateChooser:模板选择器. 这意味着一个trace文件是通过NSDocument加上自定义文档类型(模板)来储存的, 当然这个文件类型并不会存在于MIME当中的. ?

    9K10发布于 2018-08-01
  • 来自专栏Swift社区

    苹果公司将致力于在华长期发展 | Swift 周报 issue 64

    NSDocument(AppKit):在 macOS 开发中,NSDocument 常被子类化,其中 write(to:ofType:) 等方法需要自定义。 如果这些方法是抽象的,任何 NSDocument 的子类都必须提供自己的数据序列化逻辑。

    91643编辑于 2024-11-20
  • 来自专栏云原生布道专栏

    【IOS开发高级系列】CoreData专题

    Document应用程序是一般是通过 NSDocument 或其子类 NSPersistentDocument)从模型文件(后缀为 xcdatamodeld)读取。          1.3.4 NSPersistentDocument > Persistent Document -NSPersistentDocument         NSPersistentDocument是 NSDocument The NSPersistentDocument class is a subclass of NSDocument that is designed to let you easily take advantage methods to access the document’s managed object context and provides implementations of the standard NSDocument

    1.8K50编辑于 2023-10-16
领券