Synchronize the execution of two different tasks (or blocks)

Sometimes we face the following problem: We have two tasks (or blocks) and we get errors because of the wrong synchonization. The reason is that the second block needs the first task to be completed. Imagine that the second task carries data processing in a NSMutableArray and this array gets data from a web service

Continue reading Synchronize the execution of two different tasks (or blocks)

Get readable xml data with greek characters (UTF8, HTML numeric character reference)

What is your situation? Ok, let me tell you mine and probably you will find similarities. I get input data (strings) from a web service of a Public Greek Organization. The web service gets an xml document. There are 2 possible formats in xml:   1. The xml document is in UTF8 encoding If the

Continue reading Get readable xml data with greek characters (UTF8, HTML numeric character reference)

The latest news for iOS Development

Considering that the development trends evolves rapidly and it’s good know what is going on there is one valuable source! Mr Dave Verwer has done beautiful background searching and editing in order to have every friday fresh developer news. Subscibe to the email list and be informed!

How can I access the sandbox of my app?

If you are testing your app in Xcode iPhone Simulator access the following folder: ~/Library/Application Support/iPhone Simulator/User/Applications/…/Documents Trouble to find user’s Library? Navigate to users home using Finder, click to Go from menu, then go to folder… and type ~/Library Done. Hmmm… and when you testing your app to iPhone? Use the Organizer from Xcode

Continue reading How can I access the sandbox of my app?

Window-based Application template in xCode 4.2

Many tutorials has been written based on older xCode versions. Before 4.2 there was a convenient “Windows based Application” containing a MainWindow.xib. So what if you want to code an older version tutorial having 4.2 xCode? Follow the steps bellow: 1. Create an “Empty Application” template project (remember to deselect Storyboards and ARC from the

Continue reading Window-based Application template in xCode 4.2

Storyboards

This is a great new feature in iOS 5. New way of working using graphical interface in combination with new instance methods. Matthijs Hollemans published a useful tutorial regarding storyboards. A part that I found very useful is when he describes the mechanism of binding the source and the destination scene, read Here’s a handy

Continue reading Storyboards

In objective-c we declare only as property without instance variable?

I’m reading about core data and I noticed (again) in application delegate file: where the we have only the decleration of properties without the instance variables. By googling around I found that: In Objective-C 2.0 on either of the modern runtimes (ie, Intel 64bit and ARM) properties can be added to classes ‘dynamically’ (that is,

Continue reading In objective-c we declare only as property without instance variable?