• 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: Storing objects in NSMutableDictionary
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Storing objects in NSMutableDictionary


  • Subject: Re: Storing objects in NSMutableDictionary
  • From: Brian Postow <email@hidden>
  • Date: Fri, 13 Aug 2010 16:16:48 -0400

On Aug 13, 2010, at 4:09 PM, Geoffrey Holden wrote:

> Is it possible to store a class object in NSMutableDictionary?  I want to do something like the following - but it doesn't seem to work!
>
> NewMessage* message = [[NewMessage alloc] initWithApp:@"Messenger" :self]; //initWithApp passes in the nib name and a reference to itself (wonder where I got that clever idea from!)

I'm sure that this isn't your problem, but you seem to be missing a part of the method name above...

> [currentMessages setObject:message forKey:messageID];
>

Brian Postow
Senior Software Engineer
Acordex Imaging Systems

_______________________________________________

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: 
 >Storing objects in NSMutableDictionary (From: Geoffrey Holden <email@hidden>)

  • Prev by Date: Re: Storing objects in NSMutableDictionary
  • Next by Date: Re: Storing objects in NSMutableDictionary
  • Previous by thread: Re: Storing objects in NSMutableDictionary
  • Next by thread: Re: Storing objects in NSMutableDictionary
  • Index(es):
    • Date
    • Thread