realbasic-nug
[Top] [All Lists]

Re: How to read binary plist files with RB?

To: REALbasic NUG <realbasic-nug@lists.realsoftware.com>
Subject: Re: How to read binary plist files with RB?
From: Thomas Tempelmann <tempelmann@gmail.com>
Date: Thu, 29 Jan 2009 23:27:39 +0100
Authentication-results: mx.google.com; spf=neutral (google.com: 74.124.194.228 is neither permitted nor denied by best guess record for domain of realbasic-nug-bounces@lists.realsoftware.com) smtp.mail=realbasic-nug-bounces@lists.realsoftware.com; dkim=neutral (body hash did not verify) header.i=@gmail.com
Delivered-to: listarchive@realsoftware.com
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=0Qys8remXlA9FrtogJ9LZl3FcDvOpff46pZZN/swpqI=; b=JBY3+i2XFrombkr6jnwEDhBSAtQHwa1zwQJfF4jAs3+cseje+b1tAQs4447j7SGRYq wSHkXliHk3jvtMKeTOqZ57yYWX9R3M7jcRN/ReoB3zDZX2L4zMEkixEIPP6aCt2eo8ii JT5zxIT5av44wGVoVaUizWxS2fduXP4gESVVo=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=gIzRgUb8+sQr0d+pNMW8vY+hleynsbLeJtgUUTVj6jB1doOVY2/4Zw/uRlDigakTgN nd91P1POptalG0DFHKaGZyA6gJL8wBxKJ4Wu6sOlNiJJB3SM4cgkt36OePWNhS0Fgswe slPiODzeAspQXGa7OXzPdw43Sv34s5aTiTaN4=
In-reply-to: <B865E903-6074-4701-9523-6EC5718399F3@mac.com>
References: <30A06B96-3813-4053-BBF6-5C56253E7046@mac.com> <D90A202B-CB7B-4CDA-AC02-71966DBA2224@declareSub.com> <89fe53800901291101g4efabaccn6dccc04c187da216@mail.gmail.com> <B865E903-6074-4701-9523-6EC5718399F3@mac.com>
Reply-to: REALbasic NUG <realbasic-nug@lists.realsoftware.com>
Sender: realbasic-nug-bounces@lists.realsoftware.com
(lots of enough-times-repeated-quotes finally removed)

> Looking at the code, the CFPreference.Sync method is initialised using the
> pointer "CurrentApplication", taken from
> CFBundle.CarbonFramework.DataPointerNotRetained("kCFPreferencesCurrentApplication").
> This appears to be taken from the Bundle (by the way, it means I can't
> debug, just try in the built app).

You're not using the code I gave you. Instead, you are confusing
CFPreference with CFPropertyList.

CFPropertyList is what you need to use, just as I had shown you. Look
at the test code in CoreFoundation._TestSelf, where it says:

   // Test CFBundle and CFPropertyList

About 10 times further down, starting with

   dim rs as new CFReadStream (url)

is the code that reads a plist from a file, modifies it, and writes it back.

That's what you need.

CFPreferences is only for your app's prefs and nothing else.

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>


<Prev in Thread] Current Thread [Next in Thread>