• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
NSDictionary's isEqualToDictionary: method
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSDictionary's isEqualToDictionary: method


  • Subject: NSDictionary's isEqualToDictionary: method
  • From: Michael James <email@hidden>
  • Date: Thu, 25 Mar 2004 06:15:02 -0500

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.


  • Prev by Date: Re: Um... How do you rename a file?
  • Next by Date: Re: Returning structs of NSStrings
  • Previous by thread: Re: Um... How do you rename a file?
  • Next by thread: NSDictionary's isEqualToDictionary: method
  • Index(es):
    • Date
    • Thread