Re: Questions about manipulation of plist file
Re: Questions about manipulation of plist file
- Subject: Re: Questions about manipulation of plist file
- From: "Alex Guo" <email@hidden>
- Date: Wed, 1 Dec 2004 14:26:22 +0800
Hi, Meeroh,
Thank you very much for quick support.
Alex
----- Original Message -----
From: "Miro Juri¹iæ" <email@hidden>
To: "Alex Guo" <email@hidden>
Cc: "MacNewsGroup" <email@hidden>; "Stephane Sudre"
<email@hidden>
Sent: Wednesday, December 01, 2004 12:55 PM
Subject: Re: Questions about manipulation of plist file
> > 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