NSData as value in NSManagedObject

2010-02-19 Thread Mikkel Eriksen
I've put a small NSXMLDocument into a Core Data binary property like this: code: NSManagedObject *object = /* ... */ NSXMLDocument *xmlDoc = /* ... */ [object setValue:[xmlDoc XMLData] forKey:@"xml"]; When I go to retrieve it, it's wrapped in an array: (gdb) print-object

ParseKit BNF grammar

2009-12-03 Thread Mikkel Eriksen
Hi all I'm working on a ParseKit parser for GEDCOM, but I'm having a weird issue. My very simple preliminary grammar looks like this (similar to Backus-Naur): @start = record+; record = level ( tag value | xref tag ) crlf; level = /^\d/; tag = /[A-Z]{3,4}/; value

WebView setDownloadDelegate: issue

2009-04-24 Thread Mikkel Eriksen
Hi foks Hopefully the right place to ask this question. In the project I'm working on, I have a webview that's going to a specific site. When the user downloads files from that site, I want to intercept them (basically grab the URL, get the file and parse the contents). So in my controller class