Am 07.01.2015 um 09:44 schrieb Lundberg, Johannes 
<[email protected]>:

> Thanks Nikolaus!
> 
> Yeah, I guess writing a simple c-wrapper and linking to base would be one 
> solution. But since this is pure C I was hoping to not have to link to ObjC 
> and base. Maybe I’ll do it as a temporary solution.

What is the problem with linking to objc and base? They are most likely 
available on the deployment system (or why would you then want to access 
NSUserDefaults?).

> 
> But in this case, what would [NSUserDefaults standardDefaults] return since 
> there is no bundle?

I think it just works but you don’t have defaults connected to the 
bundleIdentifier. You can use [[NSUserDefaults alloc] initWithUser:user] and 
-persistentDomainForName for any user name and identifier.

> 
> Btw, would CoreBase require linking to base? Sounds weird to me if it would..
> 
> 
> --
> Johannes Lundberg
> BRILLIANTSERVICE CO., LTD.
> 
> On Wed, Jan 7, 2015 at 5:13 PM, Dr. H. Nikolaus Schaller <[email protected]> 
> wrote:
> 
> Am 07.01.2015 um 02:15 schrieb Lundberg, Johannes 
> <[email protected]>:
> 
>> Hi
>> 
>> Lately I been finding myself in the need of manipulating the defaults 
>> register from C code
> 
> You can simply rename your source file to file.m. Obj-C is a superset of 
> standard C.
> 
> Or you can wrap Obj-C calls in a C function and link that .m file to your 
> other C files.
> You alway have to link against Base.
> 
>> and I remember some discussion about CF a while ago where someone was 
>> working on it.
>> 
>> What is the current status? How complete and usable is CF?
>> 
>> Thanks!
>> --
>> Johannes Lundberg
>> BRILLIANTSERVICE CO., LTD.
>> 
>> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
>> 秘密保持について:この電子メールは、名宛人に送信したものであり、秘匿特権の対象となる情報を含んでいます。
>> もし、名宛人以外の方が受信された場合、このメールの破棄、およびこのメールに関する一切の開示、
>> 複写、配布、その他の利用、または記載内容に基づくいかなる行動もされないようお願い申し上げます。
>> ---
>> CONFIDENTIALITY NOTE: The information in this email is confidential
>> and intended solely for the addressee.
>> Disclosure, copying, distribution or any other action of use of this
>> email by person other than intended recipient, is prohibited.
>> If you are not the intended recipient and have received this email in
>> error, please destroy the original 
>> message._______________________________________________
>> Discuss-gnustep mailing list
>> [email protected]
>> https://lists.gnu.org/mailman/listinfo/discuss-gnustep
> 
> 
> 
> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
> 秘密保持について:この電子メールは、名宛人に送信したものであり、秘匿特権の対象となる情報を含んでいます。
> もし、名宛人以外の方が受信された場合、このメールの破棄、およびこのメールに関する一切の開示、
> 複写、配布、その他の利用、または記載内容に基づくいかなる行動もされないようお願い申し上げます。
> ---
> CONFIDENTIALITY NOTE: The information in this email is confidential
> and intended solely for the addressee.
> Disclosure, copying, distribution or any other action of use of this
> email by person other than intended recipient, is prohibited.
> If you are not the intended recipient and have received this email in
> error, please destroy the original message.

_______________________________________________
Discuss-gnustep mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/discuss-gnustep

Reply via email to