Amazon.com Widgets Differences between the original AddressCard objects and the unarchived ones
Welcome, Guest. Please login or register.
Did you miss your activation email?
November 27, 2014, 06:01:01 AM
Home Help Search chat Login Register 
News: Read this please.The Great Kangaroo Escape Looking for reviews of the 4th ed on Amazon!   Twitter:  @skochan
                     

+ Official Forum for Programming in Objective-C (the iPhone Programming Language) - Stephen Kochan
|-+ Old Stuff
| |-+ Chapter Study
| | |-+ Chapter 19 - Archiving
| | | |-+ Differences between the original AddressCard objects and the unarchived ones
Pages: [1] Go Down
Print
Author Topic: Differences between the original AddressCard objects and the unarchived ones (Read 851 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:



Login with username, password and session length

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 (c) 2009 classroomM.com. All rights reserved.