Re: defaults-Package

Bjoern Stierand <[email protected]>
Newsgroups gmane.comp.cms.opengroupware.xmlrpc.devel
Message-ID <[email protected]>
Ola,

On Sep 3, 2004, at 4:33 PM, Thomas Kriener wrote:
> I want to read the list of possible Link-Types from the Server via 
> XMLRPC.
>
> I the source I found the defaults-Package with the following functions
>
> defaults.arrayForKey <string>
> defaults.dataForKey <string>
> defaults.dictionaryForKey <string>
> defaults.objectForKey <string>
> defaults.stringForKey <string>
>
> What Parameter do I have to set to get the following defaults:
> -bash-2.05b$ Defaults read OpenGroupware OGoObjectLinkTypeMap
> {
>     berichtet_an = OGoPersonLinkEditor;
>     Teamleiter = OGoPersonLinkEditor;
>     Vorgesetzter = OGoPersonLinkEditor;
>     Vorstand = OGoPersonLinkEditor;
> }

That's impossible to get with the current implementation of those 
defaults
commands. As your default 'OGoObjectLinkTypeMap' is defined in the
'OpenGroupware' domain (read: the domain of the application called
'OpenGroupware'), the application 'xmlrpcd' (which has a domain of
the same name) can't access it.

To prevent this, define the default 'OGoObjectLinkTypeMap' in the
global 'NSGlobalDomain' domain and you can access it with xmlrpcd.

Greets

Bjoern

-- 
OpenGroupware.org XML-RPC
[email protected]
http://mail.opengroupware.org/mailman/listinfo/xmlrpc
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.