• 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
How to determine if a data blob is a plist ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to determine if a data blob is a plist ?


  • Subject: How to determine if a data blob is a plist ?
  • From: Bob Miller <email@hidden>
  • Date: Mon, 27 Jan 2003 14:10:46 -0500

Hello,

Can anyone tell me if there is a way to check an NSData object to see if it is a valid plist. I want to be able to detect an attempt at opening an invalid file in my appl. The appl. archives data using an NSKeyArchiver and saves the NSData away. It is possible for a user to force the application's file extension to be that of the one used by the appl. on a file that was not created by the appl. How is this scenario protected against, am I missing something very basic(could be.)

Thanks in advance for any help,
Regards,
Bob M.
_______________________________________________
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.

  • Follow-Ups:
    • Re: How to determine if a data blob is a plist ?
      • From: Jeff Disher <email@hidden>
  • Prev by Date: Re: copyPath and performFileOperation
  • Next by Date: Re: Talking to mail.yahoo.com from Cocoa program
  • Previous by thread: Re: FindFolder() and Cocoa
  • Next by thread: Re: How to determine if a data blob is a plist ?
  • Index(es):
    • Date
    • Thread