Thank you to anyone who has already donated - your generous donations helped make three months of treatment possible.
My brother Nate continues to fight stage IV Hodgkin's lymphoma. He's just 31, with a wife and baby girl. They have no active income (since he's been unable to return to work), no insurance, and cannot afford the treatment he needs. Nate and his family need your help. Please consider a donation, every dollar helps. Thanks.
#import "SampleApp.h"
@implementation SampleApp
- (void) applicationDidFinishLaunching: (id) unused
{
UIWindow *window;
struct CGRect rect = [UIHardware fullScreenApplicationContentRect];
rect.origin.x = rect.origin.y = 0.0f;
window = [[UIWindow alloc] initWithContentRect: rect];
[window orderFront: self];
[window makeKey: self];
[window _setHidden: NO];
mainView = [[UIView alloc] initWithFrame: rect];
textView = [[UITextView alloc]
initWithFrame: CGRectMake(0.0f, 0.0f, 320.0f, 240.0f)];
[textView setEditable:YES];
[textView setTextSize:14];
kb = [[UIKeyboard alloc]
initWithFrame:CGRectMake(0.0f, 245.0f, 320.0f, 200.0f)];
[window setContentView: mainView];
[mainView addSubview:textView];
[mainView addSubview:kb];
path = @"/var/root/.s1text";
[textView setText:
[NSMutableString
stringWithContentsOfFile:path
encoding:NSMacOSRomanStringEncoding
error:&error]];
}
- (void) applicationWillSuspend
{
[[textView text]
writeToFile: path
atomically: NO
encoding: NSMacOSRomanStringEncoding
error: &error];
}
@end
|