Created
February 27, 2013 21:15
-
-
Save fcy/5051802 to your computer and use it in GitHub Desktop.
Super ugly code. Discussion: https://alpha.app.net/fcy/post/3286152
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@implementation DatabaseConnection | |
static DatabaseConnection *connection; | |
+ (DatabaseConnection *)connection; | |
{ | |
return connection; | |
} | |
+ (void)setConnection:(DatabaseConnection *)newConnection; | |
{ | |
[newConnection retain]; | |
[connection release]; | |
connection = newConnection; | |
} | |
// open connection | |
- (void) open; | |
{} | |
// close connection | |
- (void) close; | |
{} | |
- (id)copyWithZone:(NSZone *)zone { | |
return self; | |
} | |
- (id)retain { | |
return self; | |
} | |
- (unsigned)retainCount { | |
return UINT_MAX; | |
} | |
- (void)release { | |
} | |
- (id)autorelease { | |
return self; | |
} | |
@end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment