• 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: [Newbie] mem errors cont.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Newbie] mem errors cont.


  • Subject: Re: [Newbie] mem errors cont.
  • From: Thomas Deniau <email@hidden>
  • Date: Sun, 3 Aug 2003 13:56:20 +0200

On Sun, 3 Aug 2003 07:48:38 -0400, Michael Hanna wrote:
> No, not explicitly. Why do I need to?

Cf. http://www.stepwise.com/Articles/Technical/HoldMe.html

> Does executing another method
> somehow decrement the objects' reference counter?

No

> At what point does
> it's reference count get decremented?

When the autorelease pool gets released or when you explicitly release
the object.

> Does an NSLog reference
> decrement an object's reference count?

No

> In this program I'm not using
> an Autorelease Pool. Sorry way too many questions in here..

If you use the Application Kit (I believe you do since you're in a
-(IBAction)) then you ARE using an autorelease pool, it is
automatically created for you, and gets released in the event loop.

--
Thomas Deniau

"Unix is user friendly. It's just selective when choosing friends."
_______________________________________________
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: 
 >Re: [Newbie] mem errors cont. (From: Michael Hanna <email@hidden>)

  • Prev by Date: Re: [Newbie] mem errors cont.
  • Next by Date: Re: Corrupted NSMutableString
  • Previous by thread: Re: [Newbie] mem errors cont.
  • Next by thread: beginning C
  • Index(es):
    • Date
    • Thread