Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @interface NSNull (integer)
- -(int)intValue;
- @end
- @interface NSNull (NSString)
- -(NSString*)stringValue;
- @end
- @implementation NSNull (functional)
- -(int)intValue {
- return -1;
- }
- -(NSString*)stringValue {
- return @"";
- }
- @end
Add Comment
Please, Sign In to add comment