| Sign In/My Account | View Cart |
| Article: |
Knowing When to Let Go: Better Living Through Memory Management | |
| Subject: | is simpler slower? | |
| Date: | 2003-06-15 21:29:50 | |
| From: | anonymous2 | |
|
Response to: is simpler slower?
|
||
|
Perhaps this would be faster?
|
||
Showing messages 1 through 1 of 1.
-(void)setFriend:(id)aFriend
{
[aFriend retain];
[friend release];
friend = aFriend;
}
Which avoids the releasing problem. But keep in mind that this is all subjective, I have done absolutely no tests of efficiency regarding these.