Top Banner
S Objective-C , Cocoa , dan iOS Hal – hal yang perlu diketahui sebagai pemula Part 1 Joni Cong – iOS Developer jonice@gramedia-
41

Sharing part 1 objective c-cocoa-x-code

Jun 29, 2015

Download

Technology

Joni Cong
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Sharing part 1   objective c-cocoa-x-code

S

Objective-C , Cocoa , dan iOS

Hal – hal yang perlu diketahui sebagai pemulaPart 1

Joni Cong – iOS Developerjonice@gramedia-

majalah.com

Page 2: Sharing part 1   objective c-cocoa-x-code

Ruang Lingkup

Sejarah Objective-C dan Cocoa Framework

Pengenalan pemrograman Objective-C

Pengenalan Cocoa (Framework)

Pengenalan Xcode 4.2

Page 3: Sharing part 1   objective c-cocoa-x-code

Sejarah Objective-C dan Cocoa

Framework

Page 4: Sharing part 1   objective c-cocoa-x-code

Sejarah Objective-C & Cocoa Touch

Lahir pada tahun

1980an

Page 5: Sharing part 1   objective c-cocoa-x-code

Sejarah Objective-C & Cocoa Touch

Bahasa C + Smalltalk

=

Objective-CBrad Cox

Page 6: Sharing part 1   objective c-cocoa-x-code

C Programming

Page 7: Sharing part 1   objective c-cocoa-x-code

Smalltalk

Page 8: Sharing part 1   objective c-cocoa-x-code

Objective-C

Page 9: Sharing part 1   objective c-cocoa-x-code

Sejarah Objective-C & Cocoa Touch

1985Steve Jobs mendirikan NeXT, Inc

Page 10: Sharing part 1   objective c-cocoa-x-code

Sejarah Objective-C & Cocoa

Touch

Page 11: Sharing part 1   objective c-cocoa-x-code

Sejarah Objective-C & Cocoa Touch

NeXT, Inc

Unix (Sistem Operasi) + Objective C

=

NextSTEP

Powerful user interface toolkit

Page 12: Sharing part 1   objective c-cocoa-x-code

Sejarah Objective-C & Cocoa

Touch

Page 13: Sharing part 1   objective c-cocoa-x-code
Page 14: Sharing part 1   objective c-cocoa-x-code
Page 15: Sharing part 1   objective c-cocoa-x-code

Sejarah Objective-C & Cocoa Touch

1996Apple akuisisi NeXT, Inc

NextSTEP => Cocoa

Page 16: Sharing part 1   objective c-cocoa-x-code

Sejarah Objective-C & Cocoa Touch

TodayNative language untuk

membangun Mac OS and iOS Apps

Page 17: Sharing part 1   objective c-cocoa-x-code
Page 18: Sharing part 1   objective c-cocoa-x-code

Pengenalan

Pemrograman Objective-C

Page 19: Sharing part 1   objective c-cocoa-x-code

Class ImplementasiClass DekralasiMyPoint.h MyPoint.m

Page 20: Sharing part 1   objective c-cocoa-x-code

Test Class: main.m

Page 21: Sharing part 1   objective c-cocoa-x-code

Test Class: main.m

Import file dekralasi .h

Alokasi memory class Point.Inisialisasi class Point.Memanggil Method Print.

Page 22: Sharing part 1   objective c-cocoa-x-code

Dasar – dasar Pemrograman Objective-C

Page 23: Sharing part 1   objective c-cocoa-x-code

Dasar – dasar Pemrograman Objective-C

Method

Page 24: Sharing part 1   objective c-cocoa-x-code

Dasar – dasar Pemrograman Objective-C

Method dengan 2 ArgumentsDeklarasi:

- (void) setXandY: (int) x: (int) y

- (void) setX: (int) x andY: (int) y

Usage:

[object setXAndY: 5: 6];

[object setX: 5 andY: 6];

Page 25: Sharing part 1   objective c-cocoa-x-code

Data Type

Page 26: Sharing part 1   objective c-cocoa-x-code

Arithmetic operators

Page 27: Sharing part 1   objective c-cocoa-x-code

Relational operators

Page 28: Sharing part 1   objective c-cocoa-x-code

Logical operators

Page 29: Sharing part 1   objective c-cocoa-x-code

Pengenalan

Cocoa Framework

Page 30: Sharing part 1   objective c-cocoa-x-code
Page 31: Sharing part 1   objective c-cocoa-x-code

Pengenalan Cocoa Framework

MVC

COCOA

Page 32: Sharing part 1   objective c-cocoa-x-code

Cocoa Arsitektur

Page 33: Sharing part 1   objective c-cocoa-x-code

Frameworks

More…

Page 34: Sharing part 1   objective c-cocoa-x-code

Object di Cocoa

Page 35: Sharing part 1   objective c-cocoa-x-code

Pengenalan

Xcode 4.2

Page 36: Sharing part 1   objective c-cocoa-x-code
Page 37: Sharing part 1   objective c-cocoa-x-code
Page 38: Sharing part 1   objective c-cocoa-x-code
Page 39: Sharing part 1   objective c-cocoa-x-code
Page 40: Sharing part 1   objective c-cocoa-x-code

Thank you

Page 41: Sharing part 1   objective c-cocoa-x-code

Question?