Tag: #objective-c
How to make a Cocoa application without a
.xib
file To create a Cocoa app without a
.xib
file, remove the NSMainNibFile
key from the Info.plist
, and replace the @NSApplicationMain
annotation on your AppDelegate
class with a custom main.swift
file that manually sets up the application and its delegate. 2017-03-17How do I replace target/action with callbacks in Swift?
Use a
CallbackWrapper
object to associate a closure with an NSControl
, setting the target
and action
properties to enable callback-based event handling. 2016-11-17All content copyright James Fisher.