I just wrote:
return tasks[[value intValue]].objectID;
Heh heh heh heh heh…
(For those who don’t understand, I just called a std::vector array operator method for the array ‘tasks’ with the return value of an Objective-C invocation of ‘intValue’ on the NSNumber value.)
Too bad that the new iphone SDK (4.0) won’t allow this anymore. Only Objective-C, C or C++ allowed. No Objective-C++ allowed. Verboten!
Hope you don’t have too much code written in ObjC++…
I know. I’ve been watching the xmlvm mailing lists to see what they decide, since it’s the same underlying problem.
Though I think I’m safer than Adobe Flash.
One significant problem I was running into was performance. Because I was allocating an NSAutoreleasePool object on pretty much every method call to handle garbage collection, performance sucked big time. I may just toss the code up on the web site and park the project.