Re: am i leaking memory
Re: am i leaking memory
- Subject: Re: am i leaking memory
- From: Jonathan Jackel <email@hidden>
- Date: Sat, 17 Jan 2004 19:41:37 -0500
You do not leak memory by not releasing scalars.
You shouldn't release scalars.
You can't release scalars.
You can only send a release message to a Cocoa object. Scalars are not
Cocoa objects. Therefore....
Jonathan
On Jan 17, 2004, at 7:21 PM, Theodore Petrosky wrote:
I really think I have most of these memory alloc
questions under my belt. just one more.....
I have a class onject that I init and with accessor
methods I access the instance variables. I have both
NSString, float, and int(s) in the object. When I
dealloc the object, I release the NSStrings and
NSArrays but do nothing with the floats and ints.
Isn't this a contradiction? Shouldn't I be 'releasing'
these elements also?
Basically, am I leaking by doing nothing with these
elements?
Thanks for the time.
Ted
__________________________________
Do you Yahoo!?
Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes
http://hotjobs.sweepstakes.yahoo.com/signingbonus
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.