Progress in Developing iOS and Cocoa
Blocks, Literals, ARC and more have been added to Cocoa helping to ease many of the pains developers experienced in the past. It is an awesome time to be an iOS or Mac developer.
Blocks, Literals, ARC and more have been added to Cocoa helping to ease many of the pains developers experienced in the past. It is an awesome time to be an iOS or Mac developer.
Cocoa appears to be missing a key component to programming: exceptions. In place of the standard try / catch / raise style of programming error objects are used.
Avoiding delays on the UI thread in iOS is key to ensure a snappy interface. Long running should be queued in operation queues to make sure they don't impact perceived performance.
Copy and Paste Menus in iOS can be tricky to setup. This code example should help with the basic syntax for getting one up.
Adding in functionality to an existing class in Cocoa is easy using categories. This can be useful for methods that should be transient or when access to the original code is restricted.
Over the past year Apple has released an amazing set of phones and tablets. While the devices are incredible the framework and language have a few shortcomings that Apple will have to address.