• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#import <Foundation/Foundation.h>
2
3@interface FoolMeOnce : NSObject
4{
5	int32_t value_one; // ivars needed to make 32-bit happy
6	int32_t value_two;
7}
8- (FoolMeOnce *) initWithFirst: (int32_t) first andSecond: (int32_t) second;
9
10@property int32_t value_one;
11@property int32_t value_two;
12
13@end
14
15@implementation FoolMeOnce
16@synthesize value_one;
17@synthesize value_two;
18- (FoolMeOnce *) initWithFirst: (int32_t) first andSecond: (int32_t) second
19{
20  value_one = first;
21  value_two = second;
22  return self;
23}
24@end
25
26int main (int argc, char const *argv[])
27{
28    NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
29
30    FoolMeOnce *my_foolie = [[FoolMeOnce alloc] initWithFirst: 20 andSecond: 55];
31    const char *my_string = (char *) my_foolie;
32
33    my_string = "Now this is a REAL string..."; // Set breakpoint here.
34
35    [pool release];
36    return 0;
37}
38