| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
This should sorta work:
#define SAFE_SET_PATH(old, new) NSString *temp = [[new lastPathComponent]
retain]; [old release]; old = temp;
Is it really so difficult to write proper accessors the long way, or use a
tool like Accessorizer? The benefit is that you can instantly debug
problems like this. Do you save enough effort using macros for that
practice to pay off?
| References: | |
| >RE: [OT] Retain count riddle (From: "Jonathan E. Jackel" <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.