More than two years ago we reviewed the first edition of the excellent book by Aaron Hillegass, "Cocoa Programming for Mac OS X". The second edition has just being released and we will be taking a quick look as to what's new.
Permalink for comment
To read all comments associated with this story, please click here.
Well, it should be safer than the previous mechanism; the syntax has changed too, to be quite java-ish. Before, you had:
NS_DURING
// Your code
NS_HANDLER
// The exception handler
NS_ENDHANDLER
now, you'll have:
@try {
// Your code
}
@catch {
// The exception handler
}
Plus, you'll have the possibility of using a finalize block.
More infos on http://gcc.gnu.org/onlinedocs/gcc/Objective-C-Dialect-Options.html