• 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: Dodgy Code - Low Level Memory Management Question!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Dodgy Code - Low Level Memory Management Question!


  • Subject: Re: Dodgy Code - Low Level Memory Management Question!
  • From: Jens Alfke <email@hidden>
  • Date: Mon, 25 Jan 2016 11:06:39 -0800

> On Jan 25, 2016, at 10:48 AM, Dave <email@hidden> wrote:
>
> if ( myCachedObject == nil);

The trailing semicolon on that line above must be a typo. It’s going to cause the test to be ignored and the block below to always run.

> 	{
> 	self = myNewObject;
> 	[LTWCacheManager addToCache: myID];
> 	return self;
> 	}

—Jens
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


  • Follow-Ups:
    • Re: Dodgy Code - Low Level Memory Management Question!
      • From: Dave <email@hidden>
    • Re: Dodgy Code - Low Level Memory Management Question!
      • From: Dave <email@hidden>
References: 
 >Dodgy Code - Low Level Memory Management Question! (From: Dave <email@hidden>)

  • Prev by Date: Re: Removing Observers eats up memory
  • Next by Date: Re: Dodgy Code - Low Level Memory Management Question!
  • Previous by thread: Dodgy Code - Low Level Memory Management Question!
  • Next by thread: Re: Dodgy Code - Low Level Memory Management Question!
  • Index(es):
    • Date
    • Thread