Commit 66b3d634 authored by O'Reilly Media, Inc's avatar O'Reilly Media, Inc
Browse files

Initial commit

parents
Loading
Loading
Loading
Loading

Chapter 1/.DS_Store

0 → 100644
+6 KiB

File added.

No diff preview for this file type.

+6 KiB

File added.

No diff preview for this file type.

+28 −0
Changes for Chapter 1/Allocating and Initializing Objects/Classes/MyObject.h: 28 added lines, 0 removed lines.
Original line number Diff line number Diff line
//
//  MyObject.h
//  Objects
//
//  Created by Vandad Nahavandipoor on 10-06-05.
//  Copyright 2010  All rights reserved.
//

#import <Foundation/Foundation.h>

/* --------------------------------------------- */

@interface MyObject : NSObject {
@public
  NSInteger myInteger;
}

/* --------------------------------------------- */

@property (nonatomic, assign) NSInteger myInteger;

/* --------------------------------------------- */

- (void) doSomething;

/* --------------------------------------------- */

@end
+30 −0
Changes for Chapter 1/Allocating and Initializing Objects/Classes/MyObject.m: 30 added lines, 0 removed lines.
Original line number Diff line number Diff line
//
//  MyObject.m
//  Objects
//
//  Created by Vandad Nahavandipoor on 10-06-05.
//  Copyright 2010  All rights reserved.
//

#import "MyObject.h"

@implementation MyObject

/* --------------------------------------------- */

@synthesize myInteger;

/* --------------------------------------------- */

- (void) doSomething{
  
  /* Perform a task here */
  NSLog(@"%s", __FUNCTION__);
  
  NSLog(@"%d", self.myInteger);
  
}

/* --------------------------------------------- */

@end
+24 −0
Changes for Chapter 1/Allocating and Initializing Objects/Classes/ObjectsAppDelegate.h: 24 added lines, 0 removed lines.
Original line number Diff line number Diff line
//
//  ObjectsAppDelegate.h
//  Objects
//
//  Created by Vandad Nahavandipoor on 10-05-26.
//  Copyright  2010. All rights reserved.
//

#import <UIKit/UIKit.h>

/* --------------------------------------------- */

@interface ObjectsAppDelegate : NSObject <UIApplicationDelegate> {
  UIWindow *window;
}

/* --------------------------------------------- */

@property (nonatomic, retain) IBOutlet UIWindow *window;

/* --------------------------------------------- */

@end
Loading