Blog Archives

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 easy now, since generally (at least since AS3)

Tagged with:
Posted in Flash, Objective C, Swift

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 watch the subtitles synched to the movie/television show

Posted in Objective C

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 of the headache they can be, especially when

Tagged with: , ,
Posted in Objective C

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 there are no optional parameters! In fact the

Tagged with: ,
Posted in Objective C

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: In Objective C, it’s very similar, however instead of ‘toString’ you use ‘description’.

Tagged with: ,
Posted in Objective C

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 given setters and getters eg: is automatically given:

Tagged with:
Posted in Objective C