• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: am i leaking memory
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >am i leaking memory (From: Theodore Petrosky <email@hidden>)

  • Prev by Date: am i leaking memory
  • Next by Date: Re: creating plist, reading too
  • Previous by thread: am i leaking memory
  • Next by thread: Getting at document previews
  • Index(es):
    • Date
    • Thread