| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
You use the same string for all fields in the struct: "[xmlContainer
descriptionAtIndex: 0]". I don't know how the xmlContainer works, but I
would be very surprised if it created new objects for every call to
"descriptionAtIndex:", most likely it always returns the same object.
Also, rule #1 for memory management in ObjC/Cocoa - if you don't
allocate, don't release. Where did you perform an allocation?
| References: | |
| >Returning structs of NSStrings (From: Michael Becker <email@hidden>) | |
| >Re: Returning structs of NSStrings (From: Michael Becker <email@hidden>) | |
| >Re: Returning structs of NSStrings (From: j o a r <email@hidden>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.