Elektrine lite

← Feed

@anosidium@mastodon.social

Post #1329541

2026-02-04 02:33 UTC

@amyworrall It’s good that you designed the app icon yourself, I don’t have the patience to do that. I checked the Info.plist file and the value for NSPrincipalClass key is NSApplication. Did you write it in Swift or Objective-C?

Replies (1)

  • @amyworrall@mastodon.social 2026-02-04 02:39

    @anosidium Swift, I'm not _quite_ that stuck in the past! (I do have a love for ObjC, but I've accepted now that the Apple community has moved on.) The overall lifecycle is through a minimal xib file -- the file's owner is NSApplication, but I only interact with that through the `NSApp` singleton. The App Delegate object there is my custom class and thus my entry point -- beyond there, all the UI/object graph is done in code. It's a document based app so NSDocument does a lot of the work.

    Open ##1329542