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: user='mvexel' osmxapi:users='mvexel' timestamp='2008-12-11T13:11:41Z'> I got this (and its peers) in an array of NSXMLNodes using the nodesForXP

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=DrawWellTech&lang=us&name=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 inte

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

Re: large documents with doc based app

2008-03-06 Thread ajb . lists
True, the usefulness is reduced to being a performance optimization in certain circumstances. On Mar 6, 2008, at 11:53 AM, Alastair Houghton wrote: On 6 Mar 2008, at 16:34, Aaron Burghardt wrote: If you don't mind working with the POSIX APIs (e.g., Unix system calls), there is mmap(). Unl