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: Arnaud Nicolet <anic297@mac.com>
Date: Fri, 30 Jan 2009 10:09:05 +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
Delivered-to: listarchive@realsoftware.com
In-reply-to: <89fe53800901291433w42b752bfuc6f8ae750b28b4be@mail.gmail.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> <89fe53800901291433w42b752bfuc6f8ae750b28b4be@mail.gmail.com>
Reply-to: REALbasic NUG <realbasic-nug@lists.realsoftware.com>
Sender: realbasic-nug-bounces@lists.realsoftware.com
Le 29 janv. 09 à 23:33 (soir), Thomas Tempelmann a écrit:

Here's an alternative suggestion:

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 could try this:

duplicate CFPreferences, giving it your own unique name, then replace
the function's code in GetCurrentApplication with something like this:

dim bndl as CFBundle = CFBundle.NewCFBundleFromID (yourAppID)
return bndl.Reference

This should return the appID for a given bundle ID.

Not sure if this works, but it might (I did not test this)

Thanks, this is what I were looking for.
_______________________________________________
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>