• 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: Dave <email@hidden>
  • Date: Mon, 25 Jan 2016 19:26:26 +0000

Also,

>> 	[LTWCacheManager addToCache: myID];

Should be [LTWCacheManager addID:myID withObject:myNewObject];   or some such (this is pseudo code really).


> On 25 Jan 2016, at 19:06, Jens Alfke <email@hidden> wrote:
>
>
>> On Jan 25, 2016, at 10:48 AM, Dave <email@hidden <mailto: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


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

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