Preview

Objective-C Intro

Satisfactory Essays
Open Document
Open Document
449 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Objective-C Intro
Q1. What were you able to get to work? (Illustrate with screen shots.)

I (we) had to revise our orginal idea for developing a mobile application for a website as the site was not compatible with development for X-Code, & more specifically Objective-C language. So we switched gear and built an app for ourselves. This iPhone application (supposed to) log books that you want to read in the future (or authors, subject matter), search it on Amazon and then store it to a list to make it viewable at a latter date. So far we’ve gotten the app to search amazon from the application and open a new web browser with the listing of the book. Below is a picture of the app and its search result:

[pic]

Q2. How does your program work, in outline?

X-Code (the compiler for Objective-C) builds it’s projects a little differently. In Python or C++, we have our class, struct’s, & functions all in the same document. However, X-Code splits up the delegation of these tasks to individual documents:

[pic]

We have two programs here essentially: AppDelegate & VeiwController. AppDelegate contains the code for the action that we want the application to perform. AppDelegate is split into .h & .m. .h are the command functions and .m is essentially the main function. Something to note about .m (or the main function), is that like our other two languages, it’s the source for calling all the functions in .h & and any directories that need to be used can be called from here as well.

[pic]

This is a shot from AppDelegate.m: the @synthesize & @implementation commands are calling our other objective holders. Obejective holders essential have the same definition in Objective-C as they do in Python with the instance of classes: they can contain not only an operation but a type as well, and are bundled together. Another thing to note is the use of void here, where again, like in C++ and Python we don’t want our main function returning anything.

Q3. What did you learn from doing

You May Also Find These Documents Helpful

  • Satisfactory Essays

    1. What does the /w switch do? And why is it used? I think there are a lot of commands that might use /w for very different reasons... For example: MCP/MCSA/MCTS/MCITP. The /W switch specifies the warning level of the MIDL compiler. The warning level indicates the severity of the warning.…

    • 380 Words
    • 1 Page
    Satisfactory Essays
  • Good Essays

    Unit 59 Assignment 3

    • 645 Words
    • 3 Pages

    The process of how the subroutine works within an operating environment is as follows. While the main part of the program is running, there will be a call command sent to the CPU to tell it to stop wherever the program is at, store the W, Z and status along with where in the main program the CPU is at in the stack. Then the main program is cleared from memory and the subroutine is loaded for the CPU to start processing the code. Once the subroutine has finished, the subroutine code is deleted from memory and the CPU will load up the main program back on and will retrieve from stack the stored information (W, Z and status) which will allow the CPU know exactly where it needs to start from.…

    • 645 Words
    • 3 Pages
    Good Essays
  • Satisfactory Essays

    Unit 4 Homework

    • 401 Words
    • 2 Pages

    How do modules help you to reuse code in a program? Performs the task once then reuses it each time you need to perform the task.…

    • 401 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    Intro to Computers

    • 609 Words
    • 3 Pages

    | Allows users to organize data in rows and columns and perform calculations and recalculate when data changes.…

    • 609 Words
    • 3 Pages
    Good Essays
  • Satisfactory Essays

    Intro the Programming

    • 386 Words
    • 5 Pages

    In general terms, a program that is broken into smaller units of code, such as methods, is known as a(n) _______.…

    • 386 Words
    • 5 Pages
    Satisfactory Essays
  • Better Essays

    Improve Er Wait Times

    • 1018 Words
    • 5 Pages

    Technology seems to have taken over these days. Smart phones, tablets, Nook, Kindle, MP3 players, laptops, and now smart televisions are just a few of the many advances so far. Hospitals should be using technology to increase efficiency. For example, “Scripps Mercy Hospital in San Diego and Chula Vista, CA, has implemented a computerized bed monitoring system that allows staff members to immediately fill vacant beds and keep patients moving throughout the hospital.” (some hospitals implement unique measures to improve ER wait times, 2008) By implementing this strategy hospital wait times have decreased. This makes the process more efficient by letting the ER now right away when a bed is available. “At Boston’s Beth Israel/Deaconess Medical…

    • 1018 Words
    • 5 Pages
    Better Essays
  • Powerful Essays

    - The dependency of the terminal data in application indicates how data management is done in terminal.…

    • 1475 Words
    • 6 Pages
    Powerful Essays
  • Good Essays

    “Modules can be written and compiled independently, with all references from one module to another resolved by the system at run time. With modest additional overhead, different degrees of protection (read only, execute only) can be given to…

    • 435 Words
    • 2 Pages
    Good Essays
  • Powerful Essays

    Android Programming Tutorials

    • 23927 Words
    • 96 Pages

    Android Programming Tutorials by Mark L. Murphy Copyright © 2009-2011 CommonsWare, LLC. All Rights Reserved. Printed in the United States of America. CommonsWare books may be purchased in printed (bulk) or digital form for educational or business use. For more information, contact direct@commonsware.com. Printing History: Mar 2011:Version 3.2 ISBN: 978-0-9816780-4-7…

    • 23927 Words
    • 96 Pages
    Powerful Essays
  • Good Essays

    Jlex

    • 1777 Words
    • 8 Pages

    The picture above assumes that a class named Main has been defined that contains the main program of interest. That program will declare an object of type Yylex, and will include calls to the Yylex constructor and its next_token method.…

    • 1777 Words
    • 8 Pages
    Good Essays
  • Satisfactory Essays

    C coding

    • 384 Words
    • 2 Pages

    6. Get the modulus of student ID by 3 using if condition in order to achieve the below functionality:…

    • 384 Words
    • 2 Pages
    Satisfactory Essays
  • Powerful Essays

    This section does not cite any references or sources. Please help improve this section by adding citations to reliable sources. Unsourced material may be challenged and removed. (September 2010)…

    • 3794 Words
    • 16 Pages
    Powerful Essays
  • Better Essays

    C LANGUAGE

    • 4276 Words
    • 18 Pages

    Introduction to the C Programming Language Science & Technology Support High Performance Computing Ohio Supercomputer Center 1224 Kinnear Road Columbus, OH 43212-1163 Table of Contents • • • • • • • • • Introduction C Program Structure Variables, Expressions, & Operators Input and Output Program Looping Decision Making Statements Array Variables Strings Math Library Functions • • • • • • • • • User-defined Functions Formatted Input and Output Pointers Structures Unions File Input and Output Dynamic Memory Allocation Command Line Arguments Operator Precedence Table 2 C Programming Introduction • Why Learn C? 3 C Programming Why Learn C? • • • • • • • • •…

    • 4276 Words
    • 18 Pages
    Better Essays
  • Good Essays

    mca syllabus

    • 3084 Words
    • 13 Pages

    Course Name: Fundamentals of Programming Course Code: MCA111 Objectives: The aim of this course is to introduce the rudiments of programming to the students. Students will become familiar with problem solving techniques and algorithm development using computers. This will include structured programming using C, a high-level programming language. Prerequisites: None Contents: 1.Introduction to programming& Basics of C: Concepts of Algorithm and Flowcharts, Process of compilation, Generation of languages, Basic features of C Language like Identifier, Keywords, Variable, data types, Operators and Expression.…

    • 3084 Words
    • 13 Pages
    Good Essays
  • Good Essays

    As I struggled to make sense of what I just heard, my mind tried its best to register the truth behind it. My boss had just introduced me to my company’s programming developer and had asked me to team up with him to create an application for my company. The only problem is that neither have I ever made an app nor did I ever learn how to make one. My boss had given me exactly two weeks to finish making this application and he’s expecting perfection. That is when I set off on a research journey to learn how to create my own app, and realized that it was merely a simple procedure to follow. The procedure includes three stages: conceptualizing your application, drafting and designing, and finally approving the application…

    • 827 Words
    • 3 Pages
    Good Essays