Re: NSUserDefaults problem
Re: NSUserDefaults problem
- Subject: Re: NSUserDefaults problem
- From: Don Willems <email@hidden>
- Date: Thu, 28 Oct 2004 10:44:38 +0200
I removed another bug (memory related) and now the NSUserDefaults
problem seems to be gone to.
It had nothing to do with any user default though.
Don
I have a strange problem with NSUserDefaults.
My application crashes when I quit it. And it generates the following
output.
2004-10-28 10:17:15.648 Whiteboard[4472] *** -[NSUserDefaults
setObject:forKey:]: Attempt to insert non-property value '{519, 401}'
of class 'Ñ@ÑÑÑNSStringÑÑNSObject'.
2004-10-28 10:17:15.766 Whiteboard[4472] *** -[NSUserDefaults
setObject:forKey:inDomain:]: Attempt to insert non-property value
'<CFArray 0x40772c0 [0xa01900e0]>{type = mutable-small, count = 5,
values = (
0 : ~/NICI/hwr-files/whiteboard
1 : <CFString 0x40bc340 [0xa01900e0]>{contents =
"~/development/hwr/Cocoa/Ink
View/build/Inklet.framework/Versions/A/Headers"}
2 : <CFString 0x40bc3c0 [0xa01900e0]>{contents =
"~/NICI/Bibliographies/Shape Recognition"}
3 : <CFString 0x40bc400 [0xa01900e0]>{contents = "~/Download"}
4 : <CFString 0x40bc2e0 [0xa01900e0]>{contents =
"~/NICI/hwr-files/arrows"}
)}' of class 'NSCFArray'.
According to the output, I'm trying to insert an object in
NSUserDefault's dictionary of a type which is not allowed (of class
'Ñ@ÑÑÑNSStringÑÑNSObject').
But I've never used NSUserDefaults in my code. It probably is used
when I start an NSSavePanel sheet on directory nil. If you use nil for
directory it is supposed to save the directory path (in the user
defaults)?
When I replace nil for NSHomeDirectory() I still get the same problem.
_______________________________________________
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