Added `-[NSArray validateAsPropertyList]` and `-[NSDictionary validateAsPropertyList...
commite309385100b6e70c966801875f622959b824dc87
authorEvan Schoenberg <evan@adiumx.com>
Fri, 1 Feb 2008 03:34:24 +0000 (1 03:34 +0000)
committerEvan Schoenberg <evan@adiumx.com>
Fri, 1 Feb 2008 03:34:24 +0000 (1 03:34 +0000)
tree8ef40e62e5b6cb5462883116eedbbe279f7c5cdb
parent098eb597e1a3bcb3d48abb101e8071de00d94ecc
Added `-[NSArray validateAsPropertyList]` and `-[NSDictionary validateAsPropertyList]` which hunt down any items within arrays or dictionaries which are invalid for property lists.  This method is used when we fail to write out a dictionary... and we now log said failure.

This prevents us from silently failing to save preference changes for over 2 years... just as a for example. Remember the recurrent "My change to the idle preference in the Status preferences just won't save!"?  Yeah... it's because the status preferences dictionary was getting an NSNumber key set inside a contained dictionary... which isn't serializable.

git-svn-id: svn://svn.adiumx.com/adium/trunk@22537 1c916fce-81e2-0310-a464-8ca513f45935
Frameworks/AIUtilities Framework/Source/AIArrayAdditions.h
Frameworks/AIUtilities Framework/Source/AIArrayAdditions.m
Frameworks/AIUtilities Framework/Source/AIDictionaryAdditions.h
Frameworks/AIUtilities Framework/Source/AIDictionaryAdditions.m