Category: Swift
-
Communication between objects in Objective C and Swift compared with Actionscript – part 3
Delegates Rather than passing the method itself to be called back, another callback strategy is to pass in an object that contains the callback methods. Delegation is such a design pattern, another…
-
Communication between objects in Objective C and Swift compared with ActionScript – Part 2
Actions in Objective C and Swift One way that Cocoa implements callbacks using Actions in the Interface Builder. Some display objects can call actions in your ViewController. You can connect the object…
-
Communication between objects in Objective C and Swift compared with ActionScript Part I
When I began using Objective C, coming from ActionScript, I was a little overwhelmed at the myriad ways that a child component can send messages to its parent. ActionScript seems sort of…
