Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FIX] mogenerator 1.6.1. Fix ObjC/PPC message-nil-float-method-result…
… gotcha in generated code reported by Ruotger Skupin. Used to generate this code: - (float)someAttributeValue { return [[self someAttribute] floatValue]; } Now generate this code: - (float)someAttributeValue { NSNumber *result = [self someAttribute]; return result ? [result floatValue] : 0; } Ref: <http://unixjunkie.blogspot.com/2006/02/messaging-nil-in-objective-c.html> <http://ridiculousfish.com/blog/archives/2005/05/29/nil/>
- Loading branch information