Re: !foo vs foo == nil

2008-08-21 Thread Sam Mo
On Aug 21, 2008, at 4:47 AM, Thomas Engelmeier wrote: Am 21.08.2008 um 05:03 schrieb Michael Ash: There was a common perception that NULL is not really the same as nil. But seems like in the end it really is (void*)0. They differ in type, not in value. NULL is (void *) 0. nil is (id) 0.

Re: !foo vs foo == nil

2008-08-21 Thread Sam Mo
On Aug 21, 2008, at 7:57 AM, Sam Mo wrote: On Aug 21, 2008, at 4:47 AM, Thomas Engelmeier wrote: Am 21.08.2008 um 05:03 schrieb Michael Ash: There was a common perception that NULL is not really the same as nil. But seems like in the end it really is (void*)0. They differ in type

Re: plist parsing in c

2008-07-06 Thread Sam Mo
On Jul 6, 2008, at 3:12 PM, Keith Duncan wrote: The only reliable* way to access system preferences is through the CFPreferences API which NSUserDefaults is built on. CFURLCreateDataAndPropertiesFromResource() and CFPropertyListCreateXMLData() for read. CFPropertyListCreateXMLData() and

Re: Style Question

2008-06-28 Thread Sam Mo
On Jun 28, 2008, at 4:54 AM, Robert Claeson wrote: On 28 Jun 2008, at 06:30, Alex Wait wrote: I have noticed, coming from C++ and Visual Studio (at school), a couple style differences if (value) { //do something } insteasd of if (value) { //do something } Also since I am using