Use (Core) Foundation data types
camelCase local variables
Prefer BOOL instead of bool

There is no need to mix C++ for this case.
Use Objective-C literals and boxing
NSAutoReleasePool → @autoreleasepool
Update to ARC