Re: Storing objects in NSMutableDictionary
Re: Storing objects in NSMutableDictionary
- Subject: Re: Storing objects in NSMutableDictionary
- From: Kyle Sluder <email@hidden>
- Date: Sat, 14 Aug 2010 01:15:51 -0700
On Sat, Aug 14, 2010 at 1:08 AM, Geoffrey Holden
<email@hidden> wrote:
> The class object is 'message' and its key 'messageID' is an NSString. If I
> set the object to be an NSString (or NSArray or NSDictionary), the
> dictionary stores it just fine. It just won't store 'message'.
Again, you need to specify what you mean by "it just won't store". Are
you getting a compiler error, a runtime error, what? What is the
actual error you are receiving?
> messageID is, in reality, generated elsewhere. But you could imagine it to
> be NSString* messageID with a value of, say, @"FirstDocument". Messenger
> refers to a nib file with which message is initialized. And I know that my
> method name (initWithApp) might be a bit rubbish, but I can always refactor
> later!
It is not helpful to ask people who are already at the disadvantage of
distance to "imagine" pertinent details about code that's giving you
unspecified problems.
Please post all relevant code *and* the full text of any errors,
exceptions, warnings, stack traces, or funny looks you're receiving.
--Kyle Sluder
_______________________________________________
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