• 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
Re: Questions about manipulation of plist file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Questions about manipulation of plist file


  • Subject: Re: Questions about manipulation of plist file
  • From: Miro Jurišić <email@hidden>
  • Date: Tue, 30 Nov 2004 23:55:24 -0500

CFDictionaryRef dict = (CFDictionaryRef )propertyList;

You should call CFGetTypeID(propertyList) and compare it with CFDictionaryGetTypeID() to make sure the propertyList is actually a CFDictionary, before casting it.


char *p = CFDictionaryGetValue(dict, "City of Birth");

You have to use CFSTR("..."), but sadly you won't get a compiler error, only a crash, if you forget to.


meeroh

--

<http://web.meeroh.org/> | KB1FMP

"And when I have understanding of computers, I shall be
        the supreme being!" -- Evil, "Time Bandits"

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Questions about manipulation of plist file
      • From: "Alex Guo" <email@hidden>
References: 
 >Questions about manipulation of plist file (From: "Alex Guo" <email@hidden>)
 >Re: Questions about manipulation of plist file (From: Stephane Sudre <email@hidden>)
 >Re: Questions about manipulation of plist file (From: "Alex Guo" <email@hidden>)

  • Prev by Date: Re: Questions about manipulation of plist file
  • Next by Date: Re: Questions about manipulation of plist file
  • Previous by thread: Re: Questions about manipulation of plist file
  • Next by thread: Re: Questions about manipulation of plist file
  • Index(es):
    • Date
    • Thread