• 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: Get my custom object from NSDictionary variable
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Get my custom object from NSDictionary variable


  • Subject: Re: Get my custom object from NSDictionary variable
  • From: Matt Neuburg <email@hidden>
  • Date: Thu, 04 Mar 2010 20:38:48 -0800
  • Thread-topic: Get my custom object from NSDictionary variable

On Fri, 5 Mar 2010 00:48:05 +0100, Daniel K??er <email@hidden> said:

>[myDictionary setObject:[[ComplexObject alloc] initWithFrom:_tempFrom
>pairTo:string] forKey:[NSString stringWithFormat:@"%d", [myDictionary
>count]]];
>
>.. it seems, that this work correctly ..

Not really. You're leaking a ComplexObject instance here, since you alloc it
but never release it. So, since you're making a memory management mistake
here, maybe you're making others elsewhere.

Also, what does "seems" mean? Have you inspected myDictionary to see whether
it is in *fact* what you expect?

>NSString* sText = [compObj valueFrom];   <--- on this line is some issue

How about revealing *what* issue? m.

--
matt neuburg, phd = email@hidden, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide - Second Edition!
http://www.tidbits.com/matt/default.html#applescriptthings



_______________________________________________

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

  • Prev by Date: Re: NSSegmentedControl
  • Next by Date: Re: -[NSManagedObject objectID]: unrecognized selector sent to class
  • Previous by thread: Re: Get my custom object from NSDictionary variable
  • Next by thread: NSSegmentedControl
  • Index(es):
    • Date
    • Thread