Skip to content

Instantly share code, notes, and snippets.

@kassens
Forked from richcollins/gist:361355
Created April 11, 2010 13:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kassens/362704 to your computer and use it in GitHub Desktop.
Save kassens/362704 to your computer and use it in GitHub Desktop.
#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