Cocoa Programming. David Chisnall. March 18,
|
|
- Rolf Bridges
- 5 years ago
- Views:
Transcription
1 March 18,
2 The Story So Far What is Cocoa? Why Cocoa? GNUstep Overview GNUstep Look and Feel
3 A Brief History of Objective-C 1980: Smalltalk-80 needed a really powerful workstation (512KB of RAM and a 5.8MHz CPU? Who can afford that?!) 1983: Object-Oriented Pre-Compiler adds Smalltalk-like objects to C. 1986: Objective-C adds Smalltalk-like syntax too. 1988: NeXT licenses Objective-C StepStone, rewrtes Objective-C compiler. 2002: Apple 2007: Apple introduces Objective-C 2, the version that comes after Objective-C 4.0. Apparently this makes sense.
4 From OpenStep to Cocoa 1985: Steve Jobs leaves Apple to create the perfect workstation. 1988: NeXT Computer ships with first commercial Rapid Application Development environment. 1990: Tim Berners-Lee writes WorldWideWeb, credits NeXT developer tools for making it possible. 1991: Sun joins NeXT to make a set of portable APIs. 1994: OpenStep specification published, GNUstep project starts implementing it. 1997: Apple buys NeXT, renames their OpenStep implementation Yellow Box. 2001: OS X 10.0 released, Yellow Box renamed Cocoa. GNUstep begins tracking Cocoa.
5 What is Cocoa? The Story So Far What is Cocoa? Why Cocoa? Applications Core Data Address Book AppKit Foundation CoreAnimation CoreGraphics WindowServer libobjc Core Foundation libc XNU
6 What is Cocoa? The Story So Far What is Cocoa? Why Cocoa? Applications Core Data Address Book AppKit Foundation CoreAnimation CoreGraphics WindowServer libobjc Core Foundation libc XNU
7 What is Cocoa? Why Cocoa? What Makes Cocoa Special? Loose coupling everywhere (dynamic dispatch, notifications, KVC/KVO, and so on) Generic solutions (NSController, and so on) No magic (but lots of sufficiently advanced technology )
8 Dictionaries as Factories 1 - ( void ) registerhandlerclass : ( Class ) aclass 2 fortag : ( NSString *) atag 3 { 4 [ handlers setobject : aclass forkey : atag ]; 5 } 6 - ( void ) opentag : ( NSString *) tag 7 attributes : ( NSDictionary *) attrs 8 { 9 [ self pushdelegate : 10 [[[ handlers objectforkey : tag ] new ] autorelease ]]; 11 [ delegate opentag : tag attributes : attrs ]; 12 }
9 Dictionaries as Switch Statements 1 - ( void ) registerhandler : ( SEL ) asel 2 forexception : ( NSString *) except 3 { 4 NSValue * boxedsel = 5 [ NSValue valuewithbytes : & asel 6 objctype ( SEL )]; 7 [ handlers setobject : boxedsel forkey : except ]; 8 /* Or: 9 [ handlers setobject : NSStringFromSelector ( sel ) 10 forkey : except ]; 11 */ 12 }
10 Dictionaries as Switch Statements ( NSException *e) 2 { 3 SEL sel selector ( ignore :); 4 NSValue * boxedsel = 5 [ handlers objectforkey : [ e name ]]; 6 [ boxedsel getvalue : & sel ]; 7 [ self performselector : sel withobject : e]; 8 // Or: 9 // objc_msgsend (self, sel, e); 10 }
11 Why Dictionaries? Objective-C message sending depends on two things: the class and selector. Classes are objects. Selectors can be treated as objects.
12 What is? Based on the idea of higher-order functions. Messages that (appear to) take messages as arguments. Implemented with proxies. Some overhead, but make code much smaller.
13 HOM Examples 1 NSArray * uppercase = 2 [[ array map ] uppercasestring ]; 3 [[ delegate ifresponds ] handlearray : uppercase ]; 4 [[ mediaplayer innewthread ] playfile : afile ]; All of these work with EtoileFoundation (on OS X and GNUstep).
14 Implementing -ifresponds implementation IfRespondsProxy 2 // methodsignatureforselector omitted 3 - ( void ) forwardinvocation : ( NSInvocation *) aninvocation 4 { 5 if ([ object respondstoselector : [ aninvocation selector ]]) 6 [ aninvocation invokewithtarget : object ]; 7 } implementation NSObject ( IfResponds ) 10 - (id) ifresponds 11 { 12 return [ IfRespondsProxy proxyforobject : self ]; 13 }
15 Things to Remember -forwardingtargetforselector: can make proxies much faster. -methodsignatureforselector must return something. This can be complicated. HOM code is relatively slow, but very concise.
16 Creating 1 // Cache these values 2 Class class = [ NSMutableIndexSet class ]; 3 size_t size = class_getinstancesize ( class ); 4 struct { Class isa ; 5 char obj [size - sizeof ( Class )]; } obj ; 6 memset (& obj, 0, size ); 7 obj. isa = class ; 8 NSMutableIndexSet * set = 9 ( NSMutableIndexSet *)& obj ; 10 [ set init ]; 11 [ set addindex : 1]; 12 // This will crash! 13 // [ set dealloc ];
17 Important Notes Don t do this. Ever. Really. The performance gain is tiny for most objects. The code is really fragile. (Experts only) Design classes explicitly for stack allocation if you must do it.
18 State Machines Handle input. Process it depending on the current state. Useful for network protocols, and so on.
19 Implementing State Machines 1 - ( void ) handleinput : ( char )a 2 { 3 switch ( state ) 4 { case STATE_ A : 7 // Do something with the input 8 state = STATE_ B ; 9 return ; State variable in class tracks state. Switch statements everywhere. Simple model, unmaintainable code.
20 isa-swizzling Objective-C objects have a pointer to their class. The first instance variable, isa, holds this pointer. You can change this at run time.
21 State Machines with isa-swizzling 1 - ( void ) handleinput : ( char )a 2 { 3 // Handle the input 4 isa = [ NewState class ]; 5 } One subclass per state. One method per action. Simpler code.
22 Caveats Using isa-swizzling breaks KVO (and potentially other things). Class layouts must be the same!
23 GNUstep Overview GNUstep Look and Feel GNUstep tracks Cocoa changes. Request driven - classes and methods that people need get implemented first. Foundation will implement all of 10.4 in next release. AppKit will implement all of 10.2 in next release. Some bits of 10.6 are already working in both.
24 What is GNUstep? The Story So Far GNUstep Overview GNUstep Look and Feel Applications Core Data Address Book AppKit Foundation Cairo -back libobjc X.org / GDI libc Linux / FreeBSD / WinNT /
25 Is that all? The Story So Far GNUstep Overview GNUstep Look and Feel Applications Core Data Address Book AppKit Foundation Cairo -back libobjc X.org / GDI libc Linux / FreeBSD / WinNT /
26 GNUstep Overview GNUstep Look and Feel
27 The Story So Far GNUstep Overview GNUstep Look and Feel Bean requires OS X 10.4 or newer.
28 Objective-C 2 Features The Story So Far GNUstep Overview GNUstep Look and Feel clang clang libobjc2 Feature GCC ObjectiveC2 libobjc2 nonfragile Zero-cost EH OS X 10.5 runtime APIs Properties Fast Enumeration Protocol introspection Fast Proxies Non-fragile ivars Object planes Garbage Collection WIP Clang + libobjc2 has feature parity with iphone runtime
Principles of Programming Languages. Objective-C. Joris Kluivers
Principles of Programming Languages Objective-C Joris Kluivers joris.kluivers@gmail.com History... 3 NeXT... 3 Language Syntax... 4 Defining a new class... 4 Object identifiers... 5 Sending messages...
More informationCS193p Spring 2010 Thursday, April 29, 2010
CS193p Spring 2010 Announcements You should have received an e-mail by now If you received e-mail approving enrollment, but are not in Axess, do it! If you have any questions, please ask via e-mail or
More informationExtensibility in GNUstep & Étoilé
Extensibility in GNUstep & Étoilé GNU Hackers 2011 http://www.gnustep.org http://www.etoileos.com Objective-C & GNUstep Objective-C Created by Brad Cox and Tom Love in 1986 to package C libraries in Smalltalk-like
More informationCollections & Memory Management. Lecture 2
Collections & Memory Management Lecture 2 Demo: Accessing Documentation Collections NSArray a list of objects in order [array objectatindex:0] [array objectatindex:3] Counting starts at zero, not one NSSet
More informationObjective-C Runtime. Cocoa s Jewel in the Crown. NSConference Nicolas
Objective-C Runtime Cocoa s Jewel in the Crown NSConference 2011 Nicolas Seriot @nst021 [isa kindof:magic] 1. Objective-C 2. Recipes 3. Introspection 4. Debugging Objective-C Runtime OO, Smalltalk-like,
More informationTraditional Smalltalk Playing Well With Others Performance Etoile. Pragmatic Smalltalk. David Chisnall. August 25, 2011
Étoilé Pragmatic Smalltalk David Chisnall August 25, 2011 Smalltalk is Awesome! Pure object-oriented system Clean, simple syntax Automatic persistence and many other great features ...but no one cares
More informationStanford CS193p. Developing Applications for iphone 4, ipod Touch, & ipad Spring Stanford CS193p Spring 2011
Developing Applications for iphone 4, ipod Touch, & ipad Today Dynamic Binding Introspection Foundation Framework Enumeration More Objective-C Allocating and Initializing objects Memory Management Demo
More informationCocoa. Last Week... Music 3SI: Introduction to Audio/Multimedia App. Programming. Today... Why Cocoa? Wikipedia - Cocoa
Music 3SI: Introduction to Audio/Multimedia App. Programming IDE (briefly) VST Plug-in Assignment 1 hints Last Week... Week #5-5/5/2006 CCRMA, Department of Music Stanford University 1 2 Today... Cocoa
More informationReview. iphone Application Programming Lecture 2: Objective-C, Cocoa. History. Objective-C. Device restrictions. Interaction paradigm changes
Review iphone Application Programming Lecture 2: Objective-C, Cocoa Device restrictions Gero Herkenrath Media Computing Group RWTH Aachen University Winter Semester 2013/2014 http://hci.rwth-aachen.de/iphone
More informationObjective-C ICT/7421ICTNathan. René Hexel. School of Information and Communication Technology Griffith University.
Objective-C 2.0 2501ICT/7421ICTNathan René Hexel School of Information and Communication Technology Griffith University Semester 1, 2012 Outline Fast Enumeration and Properties 1 Fast Enumeration and Properties
More informationX Review. Mac OS X Roots: NeXT. BWS Available for virtually every OS
X Review Distributed window system Server is the user s Terminal Client runs the application WM Xlib Application Widget Set Xt Intrinsics Xlib Highly modular X Server (exchange WM, Widget Set) BWS Available
More informationGNUstep: What is it? gnustep.org
GNUSTEP GNUstep: What is it? A powerful object-oriented development environment: A set of cross-platform libraries for developing applications (text, graphic, script, web, etc.) Development tools and applications
More informationIntroduction to Cocoa Programming
Introduction to Cocoa Programming Dr. Ken Tabb Computer Science Dept. University of Hertfordshire Agenda Brief history of Cocoa Apple s free Developer Tools - Xcode - Interface Builder Cocoa programming
More informationProofreader Charlotte Kughen Publishing Coordinator Vanessa Evans
Many of the designations used by manufacturers and sellers to distinguish their products are claimed as trademarks. Where those designations appear in this book, and the publisher was aware of a trademark
More informationios: Objective-C Primer
ios: Objective-C Primer Jp LaFond Jp.LaFond+e76@gmail.com TF, CS76 Announcements n-puzzle feedback this week (if not already returned) ios Setup project released Android Student Choice project due Tonight
More informationMobile Application Development
Mobile Application Development Lecture 12 Introduction to ObjectiveC 2013/2014 Parma Università degli Studi di Parma Lecture Summary ObjectiveC language basics Classes and objects Methods Instance variables
More informationObject-Oriented Programming with Objective-C. Lecture 2
Object-Oriented Programming with Objective-C Lecture 2 Objective-C A Little History Originally designed in the 1980s as a fusion of Smalltalk and C Popularized by NeXTSTEP in 1988 (hence the ubiquitous
More informationReview. iphone Application Programming Lecture 2: Objective-C, Cocoa. History. Objective-C. Device restrictions. Interaction paradigm changes
Review iphone Application Programming Lecture 2: Objective-C, Cocoa Device restrictions Gero Herkenrath Media Computing Group RWTH Aachen University Winter Semester 2013/2014 http://hci.rwth-aachen.de/iphone
More informationCS 47. Beginning iphone Application Development
CS 47 Beginning iphone Application Development Introductions Who, why, which? Shameless Plug: LoudTap Wifi Access (If it works..) SSID: Stanford Username/password: csp47guest Expectations This is a programming
More informationOVERVIEW. Why learn ios programming? Share first-hand experience. Identify platform differences. Identify similarities with.net
OVERVIEW Why learn ios programming? Share first-hand experience. Identify platform differences. Identify similarities with.net Microsoft MVP for 4 years C#, WinForms, WPF, Silverlight Joined Cynergy about
More informationCoding Standards for GNUstep Libraries
Coding Standards for GNUstep Libraries 26 Jun 1996 Adam Fedor Copyright c 1997-2005 Free Software Foundation Permission is granted to make and distribute verbatim copies of this manual provided the copyright
More informationObjective-C and COCOA Applications
Objective-C and COCOA Applications Fall, 2012 Prof. Massimiliano "Max" Pala pala@nyu.edu Overview X-Code IDE Basics Objective-C Classes Methods Invocations Important Types Memory Management Protocols Exceptions
More informationOutline Smalltalk Overview Pragmatic Smalltalk Closing. Pragmatic Smalltalk. David Chisnall. February 7,
February 7, 2009 http://etoileos.com Outline Using The Smalltalk Family Smalltalk - first dynamic, object-oriented, language. Self - Smalltalk without classes. JavaScript - Self with Java syntax. A Quick
More informationMobile Application Development
Mobile Application Development Lecture 13 Introduction to ObjectiveC Part II 2013/2014 Parma Università degli Studi di Parma Lecture Summary Object creation Memory management Automatic Reference Counting
More informationIntro to Native ios Development. Dave Koziol Arbormoon Software, Inc.
Intro to Native ios Development Dave Koziol Arbormoon Software, Inc. About Me Long time Apple Developer (20 WWDCs) Organizer Ann Arbor CocoaHeads President & ios Developer at Arbormoon Software Inc. Wunder
More informationios Application Development Course Details
ios Application Development Course Details By Besant Technologies Course Name Category Venue ios Application Development Mobile Application Development Besant Technologies No.24, Nagendra Nagar, Velachery
More informationCS193E Lecture #3 Categories and Protocols Cocoa Memory Management
CS193E Lecture #3 Categories and Protocols Cocoa Memory Management Winter 2008, Dempsey/Marcos 1 Today s Topics Questions from Assignment 1A or 1B? Categories Protocols Cocoa Memory Management Object life
More informationXcode and Swift CS 4720 Mobile Application Development
Xcode and Swift Mobile Application Development Why Java for Android? Let s first recap: why do you think Android uses Java? 2 Why Java for Android? Some good reasons: You can t find a CS major that doesn
More informationDesign Phase. Create a class Person. Determine the superclass. NSObject (in this case)
Design Phase Create a class Person Determine the superclass NSObject (in this case) 8 Design Phase Create a class Person Determine the superclass NSObject (in this case) What properties should it have?
More informationios Development Lecture 1 Introduction to Objective-C Ing. Simone Cirani
ios Development Lecture 1 Introduction to ObjectiveC Ing. Simone Cirani email: simone.cirani@unipr.it http://www.tlc.unipr.it/cirani Simone Cirani, Ph.D. Corso IFTS Cisita ios Development 2014 Parma Università
More informationSubversive-C: Abusing and Protecting Dynamic Message Dispatch
Subversive-C: Abusing and Protecting Dynamic Message Dispatch Julian Lettner, Benjamin Kollenda, Andrei Homescu, Per Larsen, Felix Schuster, Lucas Davi, Ahmad-Reza Sadeghi, Thorsten Holz, Michael Franz
More informationPushing the Limits. ios 6 Programming TOUCH ADVANCED APPLICATION DEVELOPMENT FOR APPLE IPHONE, IPAD, AND IPOD WILEY. Rob Napier and Mugunth Kumar
ios 6 Programming Pushing the Limits ADVANCED APPLICATION DEVELOPMENT FOR APPLE IPHONE, IPAD, AND IPOD TOUCH Rob Napier and Mugunth Kumar WILEY A John Wiley and Sons, Ltd, Publication Introduction 1 Who
More informationHigh Performance Computing and Programming, Lecture 3
High Performance Computing and Programming, Lecture 3 Memory usage and some other things Ali Dorostkar Division of Scientific Computing, Department of Information Technology, Uppsala University, Sweden
More informationThe MVC Design Pattern
The MVC Design Pattern The structure of iphone applications is based on the Model-View-Controller (MVC) design pattern because it benefits object-oriented programs in several ways. MVC based programs tend
More informationIPHONE. Development Jump Start. phil nash levelofindirection.com
IPHONE Development Jump Start phil nash levelofindirection.com Who? been in a professional developer for the last 18 years - mostly windows - c++, c#, Java, Python etc - then, Aug 2008, decided to write
More informationAdvanced Object- C Features
Advanced Object- C Features Advanced Features Proper6es Categories Protocols Delegates Selectors Key- Value Coding Predicators Proper6es Provide access to object a?ributes Shortcut to implemen6ng ge?er/se?er
More informationCS193P - Lecture 3. iphone Application Development. Custom Classes Object Lifecycle Autorelease Properties
CS193P - Lecture 3 iphone Application Development Custom Classes Object Lifecycle Autorelease Properties 1 Announcements Assignments 1A and 1B due Wednesday 1/13 at 11:59 PM Enrolled Stanford students
More informationStanford CS193p. Developing Applications for ios Fall Stanford CS193p. Fall 2013
Developing Applications for ios -14 Today What is this class all about? Description Prerequisites Homework / Final Project ios Overview What s in ios? MVC Object-Oriented Design Concept Objective C (Time
More informationIntroductory ios Development
Instructor s Introductory ios Development Unit 3 - Objective-C Classes Introductory ios Development 152-164 Unit 3 - Swift Classes Quick Links & Text References Structs vs. Classes Structs intended for
More informationWhen we re first learning Cocoa (or Java, or Qt, or any other application framework),
MacDevCenter http://www.macdevcenter.com/lpt/a/4752 6 April 2004 The Cocoa Controller Layer by Michael Beam When we re first learning Cocoa (or Java, or Qt, or any other application framework), one of
More informationITP 342 Advanced Mobile App Dev. Memory
ITP 342 Advanced Mobile App Dev Memory Memory Management Objective-C provides two methods of application memory management. 1. In the method described in this guide, referred to as manual retain-release
More informationAbout MSDOSX. Lecture 0
About MSDOSX Lecture 0 Goal: make an app of your own design for the Mac or iphone The Plan Lectures + Labs for several weeks Project proposals (about halfway through the semester) Work on project Present
More informationMemory Management: The Details
Lecture 10 Memory Management: The Details Sizing Up Memory Primitive Data Types Complex Data Types byte: char: short: basic value (8 bits) 1 byte 2 bytes Pointer: platform dependent 4 bytes on 32 bit machine
More informationMemory management. Johan Montelius KTH
Memory management Johan Montelius KTH 2017 1 / 22 C program # include int global = 42; int main ( int argc, char * argv []) { if( argc < 2) return -1; int n = atoi ( argv [1]); int on_stack
More informationAssignment II: Foundation Calculator
Assignment II: Foundation Calculator Objective The goal of this assignment is to extend the CalculatorBrain from last week to allow inputting variables into the expression the user is typing into the calculator.
More informationStanford CS193p. Developing Applications for iphone 4, ipod Touch, & ipad Fall Stanford CS193p Fall 2010
Developing Applications for iphone 4, ipod Touch, & ipad Today Blocks Language syntax for declaring a function on the fly. Grand Central Dispatch C API for leveraging blocks to make writing multithreaded
More informationObjective-C. Stanford CS193p Fall 2013
New language to learn! Strict superset of C Adds syntax for classes, methods, etc. A few things to think differently about (e.g. properties, dynamic binding) Most important concept to understand today:
More informationBuilding a (Core) Foundation. Rob Napier
Building a (Core) Foundation Rob Napier A little background Mac OS X since 10.4 iphoneos since release Cisco Jabber, The Daily, RNCryptor Focus on low-level Today: Mac developer for... KACE NAPIER KUMAR
More informationShort Notes of CS201
#includes: Short Notes of CS201 The #include directive instructs the preprocessor to read and include a file into a source code file. The file name is typically enclosed with < and > if the file is a system
More informationSmalltalk in a C World
Smalltalk in a C World David Chisnall University of Cambridge David.Chisnall@cl.cam.ac.uk Abstract Smalltalk, in spite of myriad advantages in terms of ease of development, has been largely eclipsed by
More informationA process. the stack
A process Processes Johan Montelius What is a process?... a computation KTH 2017 a program i.e. a sequence of operations a set of data structures a set of registers means to interact with other processes
More informationCS201 - Introduction to Programming Glossary By
CS201 - Introduction to Programming Glossary By #include : The #include directive instructs the preprocessor to read and include a file into a source code file. The file name is typically enclosed with
More informationIntroduction to pthreads
CS 220: Introduction to Parallel Computing Introduction to pthreads Lecture 25 Threads In computing, a thread is the smallest schedulable unit of execution Your operating system has a scheduler that decides
More informationIPHONE DEVELOPMENT. Getting Started with the iphone SDK
IPHONE DEVELOPMENT Getting Started with the iphone SDK OBJECTIVE-C The Big Picture STRICT SUPERSET OF C The Objective C Language Any C stuff applies Standard libs are here (time, sqrt etc) The C Language
More informationObject-Oriented Programming in Objective-C
In order to build the powerful, complex, and attractive apps that people want today, you need more complex tools than a keyboard and an empty file. In this section, you visit some of the concepts behind
More informationMANNING IN ACTION SAMPLE CHAPTER. Brendan G. Lim. WITH Jerry Cheung AND Jeremy McAnally
MANNING IN ACTION SAMPLE CHAPTER Brendan G. Lim WITH Jerry Cheung AND Jeremy McAnally MacRuby in Action by Brendan G. Lim with Jerry Cheung and Jeremy McAnally Chapter 1 Copyright 2012 Manning Publications
More informationWorking Effectively with Objective-C on iphone OS. Blaine Garst Wizard of Runtimes
Working Effectively with Objective-C on iphone OS Blaine Garst Wizard of Runtimes 2 Working Effectively with Objective-C on ios 4 Blaine Garst Wizard of Runtimes 3 Objective-C is the language of Cocoa
More informationObjective-C and Cocoa User Guide and Reference Manual
Objective-C and Cocoa User Guide and Reference Manual Version 7.1 Copyright and Trademarks LispWorks Objective-C and Cocoa Interface User Guide and Reference Manual Version 7.1 March 2017 Copyright 2017
More informationIntroduction to PyObjC
Author Bob Ippolito Conference Introduction to PyObjC PyCon DC, March 2005 Intended Audience Python developers using Mac OS X 10.3 or later Spies from the Linux and Win32 camps Hopefully a GNUstep porter/maintainer
More informationDynamic Dispatch and Duck Typing. L25: Modern Compiler Design
Dynamic Dispatch and Duck Typing L25: Modern Compiler Design Late Binding Static dispatch (e.g. C function calls) are jumps to specific addresses Object-oriented languages decouple method name from method
More informationCLOCK TUTORIAL VERY SIMPLE HELLO WORLD COCOA APPLICATION
http:clanmills.com Page 1/10 CLOCK TUTORIAL VERY SIMPLE HELLO WORLD COCOA APPLICATION Life in a new programming environment has to start somewhere. Everybody knows the hello world application written in
More informationObjective-C Primer. iphone Programmer s Association. Lorenzo Swank September 10, 2008
Objective-C Primer iphone Programmer s Association Lorenzo Swank September 10, 2008 Disclaimer Content was blatantly and unapologetically stolen from the WWDC 2007 Fundamentals of Cocoa session, as well
More informationApp SandBox Directory
Data Persistence Sisoft Technologies Pvt Ltd SRC E7, Shipra Riviera Bazar, Gyan Khand-3, Indirapuram, Ghaziabad Website: www.sisoft.in Email:info@sisoft.in Phone: +91-9999-283-283 App SandBox Directory
More informationSWIFT! init(title: String) { self.title = title } // required initializer w/ named parameter
SWIFT! class Session { let title: String // constant non-optional field: can never be null and can never be changed var instruktør: Person? // variable optional field: null is permitted var attendees:
More informationJython. An introduction by Thinh Le
Jython An introduction by Thinh Le precursor_python! Google App Engine! Dropbox! PyGTK (Gnome)! Vim (embedded)! BitTorrent/Morpheus! Civilization/Battlefield Jython! Interpretation of Python (1997)! Jim
More informationIntroduction to Scientific Computing
Introduction to Scientific Computing Dr Hanno Rein Last updated: October 12, 2018 1 Computers A computer is a machine which can perform a set of calculations. The purpose of this course is to give you
More informationProcesses. Johan Montelius KTH
Processes Johan Montelius KTH 2017 1 / 47 A process What is a process?... a computation a program i.e. a sequence of operations a set of data structures a set of registers means to interact with other
More informationKey Value Observing (KVO) CPRE 388
Key Value Observing (KVO) CPRE 388 MyObservedClass MyObserving Class Observed Property P Observer Callback Method Key Value Observing KVO is a mechanism that allows objects to be notified of changes to
More informationCS24 Week 2 Lecture 1
CS24 Week 2 Lecture 1 Kyle Dewey Overview C Review Void pointers Allocation structs void* (Void Pointers) void* Like any other pointer, it refers to some memory address However, it has no associated type,
More information64-Bit Transition Guide for Cocoa Touch
64-Bit Transition Guide for Cocoa Touch Contents About 64-Bit Cocoa Touch Apps 5 At a Glance 5 Convert Your App to a 64-Bit Binary After Updating It for ios 7 5 Convert and Then Test Your App 6 How to
More informationA brief introduction to C programming for Java programmers
A brief introduction to C programming for Java programmers Sven Gestegård Robertz September 2017 There are many similarities between Java and C. The syntax in Java is basically
More informationStanford CS193p. Developing Applications for ios. Fall Stanford CS193p. Fall 2011
Developing Applications for ios Today Persistence How to make things stick around between launchings of your app (besides NSUserDefaults) Persistence Property Lists Use writetourl:atomically: and initwithcontentsofurl:
More informationE Event-based parser, XML, 180 Extended attributes, URLs, 118 API, 119 command line, 118 description, 118 NSURL category, 119
Index A Access control lists (ACLs), 113 Application distribution, 353 certificate utility, 358 App ID creation, 358 App Store, 363 center, 357 no of certificates, 358 code sign identity, 362 configuring
More informationAnnouncement. Final Project Proposal Presentations and Updates
Announcement Start Final Project Pitches on Wednesday Presentation slides dues by Tuesday at 11:59 PM Email slides to cse438ta@gmail.com Extensible Networking Platform 1 1 - CSE 438 Mobile Application
More informationAdvanced Memory Analysis with Instruments. Daniel Delwood Performance Tools Engineer
Advanced Memory Analysis with Instruments Daniel Delwood Performance Tools Engineer 2 Memory Analysis What s the issue? Memory is critical to performance Limited resource Especially on iphone OS 3 4 Memory
More informationITP 342 Mobile App Dev
ITP 342 Mobile App Dev Grand Central Dispatch Background Processing Grand Central Dispatch (GCD) New API for splitting up the work your app needs to do into smaller chunks that can be spread across multiple
More informationCS193E Lecture 14. Cocoa Bindings
CS193E Lecture 14 Cocoa Bindings Agenda Questions? Personal Timeline IV Key Value Coding Key Value Observing Key Value Binding Cocoa Bindings What are Cocoa Bindings? Added in Panther, more mature in Tiger
More informationITP 342 Mobile App Development. Data Persistence
ITP 342 Mobile App Development Data Persistence Persistent Storage Want our app to save its data to persistent storage Any form of nonvolatile storage that survives a restart of the device Want a user
More informationCS61C : Machine Structures
inst.eecs.berkeley.edu/~cs61c CS61C : Machine Structures Lecture #5 Memory Management; Intro MIPS 2007-7-2 Scott Beamer, Instructor iphone Draws Crowds www.sfgate.com CS61C L5 Memory Management; Intro
More informationAn Introduction to Smalltalk for Objective-C Programmers
An Introduction to Smalltalk for Objective-C Programmers O Reilly Mac OS X Conference October 25 28, 2004 Philippe Mougin - pmougin@acm.org http://www.fscript.org IT Management & Consulting What you will
More informationOutline. Java Models for variables Types and type checking, type safety Interpretation vs. compilation. Reasoning about code. CSCI 2600 Spring
Java Outline Java Models for variables Types and type checking, type safety Interpretation vs. compilation Reasoning about code CSCI 2600 Spring 2017 2 Java Java is a successor to a number of languages,
More informationCS193p Spring 2010 Wednesday, March 31, 2010
CS193p Spring 2010 Logistics Lectures Building 260 (History Corner) Room 034 Monday & Wednesday 4:15pm - 5:30pm Office Hours TBD Homework 7 Weekly Assignments Assigned on Wednesdays (often will be multiweek
More informationCLOCK4 TUTORIAL VERY SIMPLE HELLO WORLD COCOA APPLICATION
http:clanmills.com Page 1/8 CLOCK4 TUTORIAL VERY SIMPLE HELLO WORLD COCOA APPLICATION Life in a new programming environment has to start somewhere. Everybody knows the hello world application written in
More informationCS193P - Lecture 2. iphone Application Development. Objective-C Foundation Framework
CS193P - Lecture 2 iphone Application Development Objective-C Foundation Framework Announcements Enrollment process is complete! Contact cs193p@cs.stanford.edu if you are unsure of your status Please drop
More informationGetting Help. iphone Application Programming Lecture 3: Foundation Classes. Data Structures in Objective C. Online Documentation.
iphone Application Programming Lecture 3: Foundation Classes Prof. Jan Borchers Media Computing Group RWTH Aachen University Winter Semester 2013/2014 http://hci.rwth-aachen.de/iphone Online Documentation
More informationCS 371L - Mobile Computing (ios) Dr. William C. Bulko. CS 371L Mobile Computing (ios) Introduction
CS 371L - Mobile Computing (ios) Dr. William C. Bulko CS 371L Mobile Computing (ios) Introduction 2014 The Evolution of Computing Mainframes Minicomputers - fridge-size PCs - desktop and deskside Laptops
More informationDeep C by Olve Maudal
Deep C by Olve Maudal http://www.noaanews.noaa.gov/stories2005/images/rov-hercules-titanic.jpg Programming is hard. Programming correct C is particularly hard. Indeed, it is uncommon to see a screenful
More informationStanford CS193p. Developing Applications for ios. Spring Stanford CS193p. Spring 2012
Developing Applications for ios Today Blocks Objective-C language feature for in-lining blocks of code Foundation of multi-threaded support (GCD) What is a block? A block of code (i.e. a sequence of statements
More informationiphone Application Programming Lecture 3: Foundation Classes
iphone Application Programming Lecture 3: Foundation Classes Prof. Jan Borchers Media Computing Group RWTH Aachen University Winter Semester 2013/2014 http://hci.rwth-aachen.de/iphone Getting Help Online
More informationAdvanced Programming & C++ Language
Advanced Programming & C++ Language ~6~ Introduction to Memory Management Ariel University 2018 Dr. Miri (Kopel) Ben-Nissan Stack & Heap 2 The memory a program uses is typically divided into four different
More informationPerformance
Threading Programming Guide Performance 2010-04-28 Apple Inc. 2010 Apple Inc. All rights reserved. No part of this publication may be reproduced, stored in a retrieval system, or transmitted, in any form
More informationSkip the FFI! Embedding Clang for C Interoperability. Jordan Rose Compiler Engineer, Apple. John McCall Compiler Engineer, Apple
Skip the FFI! Embedding Clang for C Interoperability Jordan Rose Compiler Engineer, Apple John McCall Compiler Engineer, Apple Problem Problem Languages don t exist in a vacuum Problem Languages don t
More informationRichard Wentk. Cocoa. Developer Reference.
Richard Wentk Cocoa Developer Reference www.wileydevreference.com Cocoa Richard Wentk Cocoa Published by Wiley Publishing, Inc. 10475 Crosspoint Boulevard Indianapolis, IN 46256 www.wiley.com Copyright
More informationSwift 5, ABI Stability and
Swift 5, ABI Stability and Concurrency @phillfarrugia Important Documents Concurrency Manifesto by Chris Lattner https: /gist.github.com/lattner/ 31ed37682ef1576b16bca1432ea9f782 Kicking off Concurrency
More informationITP 342 Mobile App Dev. Data Types
ITP 342 Mobile App Dev Data Types Types of Data Types C Primitives The vast majority of Objective-C s primitive data types are adopted from C, although it does define a few of its own to facilitate its
More informationOpenACC Course. Office Hour #2 Q&A
OpenACC Course Office Hour #2 Q&A Q1: How many threads does each GPU core have? A: GPU cores execute arithmetic instructions. Each core can execute one single precision floating point instruction per cycle
More informationWorksheet #4. Foundations of Programming Languages, WS 2014/15. December 4, 2014
Worksheet #4 Foundations of Programming Languages, WS 2014/15 December 4, 2014 In this exercise we will re-examine the techniques used for automatic memory management and implement a Cheney-style garbage
More informationHSA Foundation! Advanced Topics on Heterogeneous System Architectures. Politecnico di Milano! Seminar Room (Bld 20)! 15 December, 2017!
Advanced Topics on Heterogeneous System Architectures HSA Foundation! Politecnico di Milano! Seminar Room (Bld 20)! 15 December, 2017! Antonio R. Miele! Marco D. Santambrogio! Politecnico di Milano! 2
More informationO(1) objectatindex: firstobject: lastobject: addobject: removelastobject: O(log n) indexofobject:insortedrange:options:usingcomp arator:
ios - O(n) containsobject: indexofobject* removeobject: O(1) objectatindex: firstobject: lastobject: addobject: removelastobject: O(log n) indexofobject:insortedrange:options:usingcomp arator: Dictionary
More informationAuthor Bob Ippolito Conference. PyObjC Hacking. PyCon DC, March 2005
Author Bob Ippolito Conference PyObjC Hacking PyCon DC, March 2005 Intended Audience Python developers using Mac OS X 10.3 or later... that aren't (very) afraid of C Who probably know a little about Objective-C...
More information