• 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: Leaking Memory
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Leaking Memory


  • Subject: Re: Leaking Memory
  • From: "John C. Randolph" <email@hidden>
  • Date: Mon, 20 Jan 2003 16:09:59 -0800

On Monday, January 20, 2003, at 03:42 PM, Shawn Erickson wrote:


This is done in Objective-C using a "retain" counting system that allows an object to delete itself when it is no longer needed. To ask an object in Objective-C to remain one simply calls retain().

Sorry to be overly pedantic here, but in Objective-C, you send -retain, you don't call retain(). In Obj-C, we don't call methods, we send messages. The runtime calls methods after looking up the message.

-jcr


John C. Randolph <email@hidden> (408) 974-8819
Sr. Cocoa Software Engineer,
Apple Worldwide Developer Relations
http://developer.apple.com/cocoa/index.html
_______________________________________________
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.

  • Follow-Ups:
    • Re: Leaking Memory
      • From: Shawn Erickson <email@hidden>
References: 
 >Re: Leaking Memory (From: Shawn Erickson <email@hidden>)

  • Prev by Date: Right mouse button and NSMenu in NSImageView
  • Next by Date: Re: Leaking Memory
  • Previous by thread: Re: Leaking Memory
  • Next by thread: Re: Leaking Memory
  • Index(es):
    • Date
    • Thread