Skip to content

Custodial refactor of NSMenu #518

@reactive-firewall

Description

@reactive-firewall

Context:

The current NSMenu implementation is still rather fragile and could use a custodial refactor to add stability with some sanity checks and performance enhancements.

Namely:

  • define behavior for nil-edgecases (e.g., fast returns or return nil without nil-error)
  • modernize for NSCoding protocol (including transparent support for sub-class overloading)
  • shim support for compiler nullability attributes(future-proofing, and required for ever supporting apple's swift-bridge)
  • add FIXME/TODO custodial comments for future contributors (both easy stuff, and todo design stuff)
  • modernize internal storage

etc.

Metadata

Metadata

Assignees

No one assigned

    Labels

    AppKitRelated to AppKit.framework or Cocoa

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions