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 RJViewController { | |
__weak IBOutlet UIWebView *_webView; | |
NSURLConnection *_urlConnection; | |
NSMutableData *_receivedData; | |
} | |
- (void)viewDidLoad | |
{ | |
[super viewDidLoad]; | |
NSString *urlString = @"http://google.com"; |
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 RJViewController | |
{ | |
__weak IBOutlet UIWebView *_webView; | |
} | |
- (void)viewDidLoad | |
{ | |
[super viewDidLoad]; | |
NSString *urlString = @"http://google.com"; | |
NSURL *url = [NSURL URLWithString:urlString]; |
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
// | |
// InterestingnessTableViewController.m | |
// Interestingness - Version 3 | |
// | |
// Created by Danton Chin on 3/24/10. | |
// Copyright 2010 http://iphonedeveloperjournal.com/. All rights reserved. | |
// | |
#import "InterestingnessTableViewController.h" |
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
// | |
// InterestingnessTableViewController.m | |
// Interestingness - Version 2 | |
// | |
// Created by Danton Chin on 3/24/10. | |
// Copyright 2010 http://iphonedeveloperjournal.com/. All rights reserved. | |
// | |
#import "InterestingnessTableViewController.h" |
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
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { | |
NSSetUncaughtExceptionHandler(&uncaughtExceptionHandler); | |
struct sigaction newSignalAction; //create the signal action structure | |
memset(&newSignalAction, 0, sizeof(newSignalAction)); //initialize the signal action structure | |
newSignalAction.sa_handler = &signalHandler; //set signalHandler as the handler in the signal action structure | |
sigaction(SIGABRT, &newSignalAction, NULL); //set SignalHandler as the handlers for SIGABRT, SIGILL and SIGBUS | |
sigaction(SIGILL, &newSignalAction, NULL); |
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
// | |
// main.m | |
// Archiving3 | |
// | |
// Created by Rabin Joshi on 6/18/11. | |
// Copyright 2011 Techgene. All rights reserved. | |
// | |
#import <Foundation/Foundation.h> | |
#import "Foo.h" |
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
// | |
// main.m | |
// Archiving3 | |
// | |
// Created by Rabin Joshi on 6/18/11. | |
// Copyright 2011 Techgene. All rights reserved. | |
// | |
#import <Foundation/Foundation.h> | |
#import "Foo.h" |
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
// | |
// main.m | |
// Archiving3 | |
// | |
// Created by Rabin Joshi on 6/18/11. | |
// Copyright 2011 Techgene. All rights reserved. | |
// | |
#import <Foundation/Foundation.h> | |
#import "Foo.h" |
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
NSDictionary *glossary = [NSDictionary dictionaryWithObjectsAndKeys: | |
@"A class defined so other classes can inherit from it.", @"abstract class", | |
@"To implement all the methods defined in a protocol", @"adopt", | |
@"Storing an object for later use. ", @"archiving", | |
nil | |
]; | |
// Storing | |
if ([glossary writeToFile: @"/Users/rabinjoshi/Desktop/glossary.plist" atomically: YES] == NO) |