This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (NSString *)fullName { | |
NSString *string = [NSString stringWithFormat:@"%@ %@", firstName, lastName]; | |
return string; | |
} | |
- (NSString *)fullName { | |
NSString *string = [[[NSString alloc] initWithFormat:@"%@ %@", firstName, | |
lastName] autorelease]; | |
return string; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (NSString *)fullName { | |
NSString *string = [[[NSString alloc] initWithFormat:@"%@ %@", firstName, | |
lastName] release]; | |
return string; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (NSString *)fullName { | |
NSString *string = [[NSString alloc] initWithFormat:@"%@ %@", firstName, | |
lastName]; | |
return string; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void main() | |
{ | |
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; | |
NSArray *args = [[NSProcessInfo processInfo] arguments]; | |
for (NSString *fileName in args) { | |
NSAutoreleasePool *loopPool = [[NSAutoreleasePool alloc] init]; | |
NSError *error = nil; | |
NSString *fileContents = [[[NSString alloc] initWithContentsOfFile:fileName | |
encoding:NSUTF8StringEncoding error:&error] autorelease]; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local options = | |
{ | |
to = { "[email protected]", "[email protected]" }, | |
cc = { "[email protected]", "[email protected]" }, | |
subject = "My High Score", | |
isBodyHtml = true, | |
body = "<html><body>I scored over <b>9000</b>!!! Can you do better?</body></html>", | |
attachment = | |
{ | |
{ baseDir=system.DocumentsDirectory, filename="Screenshot.png", type="image" }, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local options = | |
{ | |
to = { "1234567890", "9876543210" }, | |
body = "I scored over 9000!!! Can you do better?" | |
} | |
native.showPopup("sms", options) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (BOOL)validateEmail:(id *)value error:(NSError **)error { | |
if (self.email && ![self.email isValidEmailAddress] && error) { | |
*error = [NSError errorWithDomain:@"MyErrorDomain" code:1]; | |
return NO; | |
} | |
return YES; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// DO NOT EDIT. This file is machine-generated and constantly overwritten. | |
// Make changes to People.h instead. | |
#import <CoreData/CoreData.h> | |
extern const struct PeopleAttributes { | |
__unsafe_unretained NSString *age; | |
__unsafe_unretained NSString *name; | |
} PeopleAttributes; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// DO NOT EDIT. This file is machine-generated and constantly overwritten. | |
// Make changes to People.h instead. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@property (nonatomic, strong) NSNumber* age; | |
@property int16_t ageValue; | |
- (int16_t)ageValue; | |
- (void)setAgeValue:(int16_t)value_; |