Return to Snippet

Revision: 17900
at September 16, 2009 13:44 by gerhardsletten


Initial Code
// SomeClass.h

#import <Foundation/Foundation.h>

@interface SomeClass : NSObject {
	int mynumber;
	NSString *mystring;
}

@property(readwrite/readonly, assign/retain/copy, nonatomic) int mynumber;
@property(readwrite/readonly, assign/retain/copy, nonatomic) NSString* mystring;

@end

// SomeClass.m

#import "SomeClass.h"
@implementation SomeClass

@synthesize mynumber, mystring;

@end

Initial URL

                                

Initial Description

                                

Initial Title
Objective C - Properties

Initial Tags

                                

Initial Language
Objective C