Official Forum for Programming in Objective-C (the iPhone Programming Language) - Stephen Kochan
June 23, 2018, 07:02:37 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
   Home   Help Search Login Register Chat  
Pages: [1]   Go Down
Author Topic: Differences between the original AddressCard objects and the unarchived ones  (Read 1579 times)
Posts: 32

« on: July 12, 2010, 05:57:10 AM »

In programs 19.6 to 19.7 the instance variables of AddressCard objects (NSString *name and NSString *email) are string constants.
In program 19.6 their retain count is ffffffff.
In program 19.7 their copies produced by unarchiveObjectWithFile: are also immutable strings but their representation in memory is different. Printing their values in the AddressCard dealloc: method, we can see that their retain count is 1.
Generally, are there other significant differences between an object and its copy produced by archiving and unarchiving the original object?
« Last Edit: July 12, 2010, 06:03:39 AM by pierre » Logged
Pages: [1]   Go Up
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Entire forum contents ゥ 2009 All rights reserved.