Re: NSPropertyListSerialization weirdness

2015-07-26 Thread Gary L. Wade
When the file arrives, verify that the contents of it have also arrived. It's possible you may just be processing that a file was created but nothing yet has been put into it. -- Gary L. Wade (Sent from my iPad) http://www.garywade.com/ > On Jul 26, 2015, at 2:28 PM, Robert Martin wrote: > > I

Re: NSPropertyListSerialization weirdness

2015-07-26 Thread Robert Martin
Thanks Jens, I’ll test for NSNulls instead. I know the dictionary is valid because after I read it with dictionaryWithContentsOfFile:, I log it, and it ‘looks' fine… > On Jul 26, 2015, at 5:44 PM, Jens Alfke wrote: > > >> On Jul 26, 2015, at 2:28 PM, Robert Martin wrote: >> >> I get a null

Re: NSPropertyListSerialization weirdness

2015-07-26 Thread Jens Alfke
> On Jul 26, 2015, at 2:28 PM, Robert Martin wrote: > > I get a null, and an error (200) that the plist contains null. > > Before I make that call, I put in a check for nulls, but none are found: You’re checking for nil pointers. (Which are illegal in Foundation collections, so you’ll never f

NSPropertyListSerialization weirdness

2015-07-26 Thread Robert Martin
I’m having some issues. I’m tracking a folder that is I watch via kqueue, and if a .plist arrives, I process it immediately. The plist contains a dictionary, which is successfully read with dictionaryWithContentsOfFile:. If I log the dictionary description, it is accurate. The dictionary only co