Re: NSXMLNode and NSXMLElement

2009-01-20 Thread ajb . lists
On Jan 20, 2009, at 10:33 PM, Martijn van Exel wrote: Hi all, Consider this small bit of (OpenStreetMap) XML: node id='257441001' lat='52.3506393' lon='4.8889186' user='mvexel' osmxapi:users='mvexel' timestamp='2008-12-11T13:11:41Z' tag k='amenity' v='pub'/ tag

Fwd: Report writer for Cocoa?

2009-01-16 Thread ajb . lists
Did you search the archives? There is a package that is much closer to what you are asking for then the suggestions so far. I've mentioned it before, but happy to do so again: http://reportwell.com/main.php?siteName=DrawWellTechlang=usname=home The reporting engine is called ReportWell,

Re: Outline View not retaining objects it uses. Why?

2008-07-20 Thread ajb . lists
On Jul 20, 2008, at 5:25 AM, Paul Sargent wrote: wasn't really expecting the view to keep a cache at all. I was expecting it to request the item each time it wanted information about it (in which case an returning an autoreleased object seemed reasonable). It may not have been your

Re: Calculating file size

2008-04-29 Thread ajb . lists
I dug up some code that might help. This uses a category to replace NSFileManager's fileAttributesAtPath: traverseLink and provides more attributes than the standard implementation. With this category method, you can continue to use the directory enumerator, so your calculation becomes:

Re: Calculating file size

2008-04-27 Thread ajb . lists
Others have answered with good suggestions for other APIs, but I will point out for the record that you can do it in Cocoa, too, because the file system has a path-based mechanism in which ..namedfork/rsrc is appended to the path. For example, in Terminal: $ ls -li Documents//Example.doc