Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
#import <Foundation/Foundation.h>
@interface Settings : NSObject {
NSString *email;
NSString *password;
NSString *server;
BOOL pushesMentions;
BOOL pushesBroadcasts;
int pushStartHour;
int pushStopHour;
}
@property (nonatomic, retain) NSString *email;
@property (nonatomic, retain) NSString *password;
@property (nonatomic, retain) NSString *server;
@property (nonatomic) BOOL pushesMentions;
@property (nonatomic) BOOL pushesBroadcasts;
@property (nonatomic) int pushStartHour;
@property (nonatomic) int pushStopHour;
@end
#import "Settings.h"
@implementation Settings
@synthesize email;
@synthesize password;
@synthesize server;
@synthesize pushesMentions;
@synthesize pushesBroadcasts;
@synthesize pushStartHour;
@synthesize pushStopHour;
- (void)dealloc
{
self.email = nil;
self.password = nil;
self.server = nil;
[super dealloc];
}
@end
class Settings
attr_accessor :email, :password, :server
attr_accessor :pushesMentions, :pushesBroadcasts
attr_accessor :pushStartHour, :pushStopHour
end
@ishuo
Copy link

ishuo commented Nov 7, 2010

header file is pretty daunting :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment