Re: CoreFoundation

2015-01-07 Thread David Chisnall
On 7 Jan 2015, at 10:05, Dr. H. Nikolaus Schaller h...@goldelico.com wrote: and with base+cf I could have a universal way to access and modify system preferences in plists from both ObjC and C. I image there might be a situation where I wanna use plists for compatibility with gnustep but

Re: CoreFoundation

2015-01-07 Thread Dr. H. Nikolaus Schaller
Am 07.01.2015 um 02:15 schrieb Lundberg, Johannes johan...@brilliantservice.co.jp: 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

Re: CoreFoundation

2015-01-07 Thread Lundberg, Johannes
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. But in this case, what would [NSUserDefaults standardDefaults] return since

Re: CoreFoundation

2015-01-07 Thread Riccardo Mottola
but there is no objc+base installed. no real need for CoreFoundation, Mac worked fine before it. However I agree plists are very nice. NetBSD has a small C library, standard with the system, which manipulates plists! I didn't know they were plists, but while working with ACPI I found out I could

Re: CoreFoundation

2015-01-07 Thread Wolfgang Lux
Am 07.01.2015 um 11:09 schrieb Lundberg, Johannes johan...@brilliantservice.co.jp: Oh I see. Thanks for the info. I thought CF came much earlier. You are right. CF was introduced much earlier. It was present from the early developer builds of OS X onward (and also had an implementation on

Re: CoreFoundation

2015-01-07 Thread Lundberg, Johannes
I think plists is a great way to store preferences and with base+cf I could have a universal way to access and modify system preferences in plists from both ObjC and C. I image there might be a situation where I wanna use plists for compatibility with gnustep but there is no objc+base installed.

Re: CoreFoundation

2015-01-07 Thread David Chisnall
On 7 Jan 2015, at 09:28, Lundberg, Johannes johan...@brilliantservice.co.jp wrote: I think plists is a great way to store preferences and with base+cf I could have a universal way to access and modify system preferences in plists from both ObjC and C. I image there might be a situation

Re: CoreFoundation

2015-01-07 Thread Dr. H. Nikolaus Schaller
Am 07.01.2015 um 09:44 schrieb Lundberg, Johannes johan...@brilliantservice.co.jp: 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

Re: CoreFoundation

2015-01-07 Thread Dr. H. Nikolaus Schaller
and C. I image there might be a situation where I wanna use plists for compatibility with gnustep but there is no objc+base installed. Ok, I see. On OS X, CoreFoundation is a pure C base library and it is heavily used to implement Foundation.framework. But on GNUstep I think it is a wrapper

Re: CoreFoundation

2015-01-07 Thread Lundberg, Johannes
but there is no objc+base installed. Ok, I see. On OS X, CoreFoundation is a pure C base library and it is heavily used to implement Foundation.framework. But on GNUstep I think it is a wrapper around Base - just for compatibility reasons because there is a lot of software that did not use

Re: CoreFoundation

2015-01-07 Thread Luboš Doležel
On 01/07/2015 02:15 AM, Lundberg, Johannes wrote: Hi Lately I been finding myself in the need of manipulating the defaults register from C code 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?

CoreFoundation

2015-01-06 Thread Lundberg, Johannes
Hi Lately I been finding myself in the need of manipulating the defaults register from C code 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.