I was going through “Pro. Objective-C Design Patterns for iOS” by Chung and found
_sharedSinglton = [[super allocWithZone: NULL] init];
I looked in Apple’s documentation for NSCopying as well, but can’t really understand what a ZONE really means.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
NSZoneis obsolete now, but back in the NEXTSTEP days,NSZonewas an attempt to bring the concept of “malloc zones” into Cocoa. Here are some docs that described how it worked when it was enabled: http://www.cocoadev.com/index.pl?NSZone