Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSDictionary's isEqualToDictionary: method



I am writing a unit test that creates a property list in code (with an NSMutableDictionary as the plist's root element), writes it to a file (as an XML plist), reads it back into memory and checks if the plist read from the file equals the original one created in code.

I am able to successfully write the XML plist file and read it back in, but when I check their equality with isEqualToDictionary:, it returns NO. I make no changes at all to the file and when I print out both dictionaries using the description method, their contents are exactly the same.

Does anyone have an idea why this is happening? Thanks in advance for all of your help.

- Michael James
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.




Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.