Summary cs193p iphone aplication development

-
200 Flashcards & Notes
6 Students
  • This summary

  • +380.000 other summaries

  • A unique study tool

  • A rehearsal system for this summary

  • Studycoaching with videos

Remember faster, study better. Scientifically proven.

This is the summary of the book "cs193p iphone aplication development". The author(s) of the book is/are Paul Hegarty. This summary is written by students who study efficient with the Study Tool of Study Smart With Chris.

PREMIUM summaries are quality controlled, selected summaries prepared for you to help you achieve your study goals faster!

Summary - cs193p iphone aplication development

  • 1.1 MVC

  • What does the term MVC mean?

    Model View Controller

  • Which part of "MVC" is the "how"

    The controller

  • Which part of MVC is the controllers minion?

     

    The view

  • Can the controller always talk to the model directly?

    Yes for sure!

  • Can the controller talk to the view directly?

    Yes

  • What is an outlet?

    A connection from the controller to the view

  • Can the model "talk" to the view?

    No, never!

  • Can the view "talk" to the model?

    No, never!

  • Which part of MVC is the "what"

    the model

  • can the view "talk" to the controller? (Y/N)

    Yes

  • How can the view "talk" to the controller?(4x)

    target action, delegation, data source delegation

  • Do views own their data?

    No

  • Can one MVC act as minios of another MVC?

    Yes

  • Is Objective C a superset of C?

     

    Yes

  • A superset adds "stuff".

  • Do we access instance variables directly

    No, through properties. Properties are just methods to get and set the value.

  • All whats in the header files is? (Public/Private)

    Public

  • What does a class contain, a ..file and a .. file

    header (.h) file and a implementation (.m) file

  • Can we have multiple inheritance in objective C?

     

    No we can not. Objective C is singe inheritance.

  • In which framework does NSObject "live" in?

    Foundation

  • What does a property represent

    a getter and a setter

  • This is a test.  Can you see this card Andre?
    Yes or no?
  • Where do all objects live?

    In the heap

  • Does objective c work with garbage collection?

    No!

  • Can you have an object on the stack?

    No, they all live in the heap

  • How do we keep track what objects are in the heap and what objects need to be cleaned up?

    Objective c uses automatic reference counting.

  • As soon as no one point to an object in the heap, what happens?

    It gets cleaned up.

  • what does the keyword strong on a property mean?

    I want this object to stay in the heap as long as i point to it.

  • When is an object cleared out of the heap?

    When i stop pointing to it, i.e. when i set the pointer to nil, or the pointer points to something else.

  • What does the keyword weak on a property mean?

     

    Keep the object in the heap as long as someone else points strongly to it. When no one points to it, clean it up and set my pointer to nil!

  • What is the value of a property before it is set?

    nil

  • What does nonatomic mean?

    It means the setter and getters method are not thread safe

  • what does @synthesize contents = _contents; mean? (the property name is "contents")

    It means the instance variabele for the getter and setter of contents is _contents.

  • Do properties always start with a lowwer or uppercase letter?

    lower case

  • Do you need to specify strong or weak on primitives?, i.e. BOOL?

    No, but you still have to say "nonatomic"

  • How can you change the name of a "getter" in the header files?

    getter=nameOfTheGetter

    i.e.

    @property(nonatomic, getter=isFaceUp) BOOL faceUp;

  • Can an array contain object from any class, or must the object be the same class?

    They can be any class. 

  • When you send a message to nil, what happens?

    Nothing happens, nil will be returned!

Read the full summary
This summary. +380.000 other summaries. A unique study tool. A rehearsal system for this summary. Studycoaching with videos.

Latest added flashcards

What is a completion handler?
A block of code to execute when the open/save completes. Open/save is asynchronus!!
How can you create an UIManagedDocument?
Have a url, i.e. that points to your documents folder.
UIManagedDocument *document = [[UIManagedDocument initWithFileURL:url];
How can you think of a UIManagedDocument
As a container to hold your database.
How are attributes accessed?
via the methods valueForKey: and setValueForKey
Can there be other "things" than objects in Entities or Atributes?
No, they all are objects.
How do entities appear in your code?
NSManaged object or subclass thereof. We usually make subclasses so we can use properties to access the attributes.
Atributes are like ...
properties
Entities are kinda like ....
objects
How can you think of core data?
An object graph that is made persistence into an sql database
What is Archiving?
It kind a freezes the object graph, and you can bring it back to life