Official Forum for Programming in Objective-C (the iPhone Programming Language) - Stephen Kochan
November 25, 2017, 04:28:22 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
  Print  
Author Topic: Differences between the original AddressCard objects and the unarchived ones  (Read 1469 times)
pierre
Newbie
*
Posts: 32


Email
« 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
  Print  
 
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 classroomM.com. All rights reserved.