Writing
The public notebook: Swift, iOS, Flutter, and a long trail of “I will definitely remember this.”
-
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…
-
Subtitles Viewer available on the App Store
An app I’ve been working on, ‘Subtitles Viewer’ is now available on the App Store! Click here to download. Subtitles Viewer allows you to download subtitles on your iOS device, and then…
-
The Perfect Storm – AIR iOS simulator/TLF issues
Was making changes to an app built with Flash for iOS, when I discovered that incompatibilities between the new XCode and Flash means that no longer(at the time of writing) is it possible to test or…
-
Punctuation in RTL text in Objective C
In the subtitles project I’m working on, I had the need to display Hebrew and Arabic, both RTL (right to left) languages. Having not worked with RTL text before, I wasn’t aware…
-
Optional parameters in methods in Objective C
Methods in Objective C are actually called messages but they’re often referred to as methods, a more commonly used terminology. Optional parameters are treated in an interesting way in Objective C. Basically…
-
Default String representation of an NSObject
In Actionscript, if you subclass Object, and you want a default string representation of your subclass, you just implement the method ‘toString’. For example the following: [sourcecode language=”actionscript3″] package { public class…
-
Getters and Setters in Objective C
Doing a lot of Objective C lately, thought it worthwhile to write a few key differences with Actionscript. To begin with today – getters and setters! Properties in Objective C are automatically…
-
the trick for registering a class for shared object
registerClassAlias is a great way for SharedObject to recognise the class type that you’re storing rather than just a random object. However – something that seems to be undocumented – I’ve discovered…
