Files
SnakeAppleSecurityFiles/III. Checksec/custom/example.m
Karmaz95 dec6d69edc
2024-01-06 22:06:00 +01:00

20 lines
453 B
Objective-C

#import <Foundation/Foundation.h>
@interface Person : NSObject
@property NSString *name;
@end
@implementation Person
@end
int main(int argc, const char * argv[]) {
@autoreleasepool {
// Create a Person object
Person *person = [[Person alloc] init];
person.name = @"John Doe";
// The person object will be automatically managed by ARC
NSLog(@"Person's name: %@", person.name);
}
return 0;
}