DreamLab – Solve cancer while you sleep

Recommended By

Now more than ever, we have the power to change humanity with technology, and today we are helping cure cancer. Over the last 5 years cancer has taken away many people close to me, and

b2cloud are a BRW Fast 100 winner

Recommended By

It’s honouring to receive recognition for b2cloud as one of the 100 fastest growing companies in Australia in the BRW Fast 100. October has proven to be a highly rewarding month for our team, after

2015 App Design Award Winners!

Recommended By

Another great win for the b2cloud team, being recognised by the App Design Awards for our incredible work with Catch of the Day owned Yumtable. The industry awarded b2cloud 2 Silver awards for the Best

Copy vs. Retain, Immutable vs Mutable

Guides | Tutorial By 4 years ago

In the Foundation framework for iOS and Mac the main container classes (NSString, NSArray, NSDictionary, and some others) have two states; Immutable and Mutable. If a class is immutable, it cannot be changed and is treated as ready only. When a class if mutable it can be modified after creation. It may seem that when passing one of these around it may be faster to retain it rather than copy it, because new memory does not need to be allocated. While this is true it can leave instabilities, see this example.