NSMutableDictionary & Strings - Weird, weird problem
NSMutableDictionary & Strings - Weird, weird problem
- Subject: NSMutableDictionary & Strings - Weird, weird problem
- From: "Bobby B" <email@hidden>
- Date: Fri, 30 Jun 2006 16:33:05 -0400
Hey guys
In my program, I have a NSMutableDictionary that I save to a .plist,
and reload on startup. I'm having an extremely odd problem with it.
Some of the strings I want to save are strings that look like URLs,
but they are strings. It seems to save them fine, but when I load the
Dictionary back from the harddrive, it crashes out on me and gives me
an error:
2006-06-30 16:21:56.243 AMP[3509] http://www.mp3car.com/vbulletin/
2006-06-30 16:21:56.252 AMP[3509] An uncaught exception was raised
2006-06-30 16:21:56.271 AMP[3509] [<NSCFString 0xa3cb300>
valueForUndefinedKey:]: this class is not key value coding-compliant
for the key SYSTEM_VOLUME.
2006-06-30 16:21:56.332 AMP[3509] *** Uncaught exception:
<NSUnknownKeyException> [<NSCFString 0xa3cb300>
valueForUndefinedKey:]: this class is not key value coding-compliant
for the key SYSTEM_VOLUME.
(But SYSTEM_VOLUME isn't the related key. The related key is
something totally different - and SYSTEM_VOLUME, along with every
other key look perfect when I view the .plist in an editor)
Here is a specific string it crashes on:
http://www.mp3car.com/vbulletin/
It crashes on that, but the following it has no problem with:
http://www.mp3car.com/
Nor does it have a problem with this:
http://www.aychamo.com/?page_id=4
So what is it in /vbulletin/ that causes it to crash? I can't for my
life figure this out. I've been playing with it all day and feel as
though I've hit a wall. Whatever it is in that string, it sure makes
it crash. This is the line of code I use to set the string value into
the dictionary:
[preferencesDictionary setValue:[browserAddress stringValue]
forKey:@"BROWSER_FAVORITES_1"];
(browserAddress is just a NSTextField)
And then I just save the dictionary to a file.. seem's pretty harmless to me.
Does anyone have an idea where I should start looking??
Thank you
Bobby
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden