Samenvatting cs193p iphone aplication development

-
200 Flashcards en notities
6 Studenten
  • Deze samenvatting

  • +380.000 andere samenvattingen

  • Een unieke studietool

  • Een oefentool voor deze samenvatting

  • Studiecoaching met filmpjes

Onthoud sneller, leer beter. Wetenschappelijk bewezen.

Dit is de samenvatting van het boek "cs193p iphone aplication development". De auteur(s) van het boek is/zijn Paul Hegarty. Deze samenvatting is geschreven door studenten die effectief studeren met de studietool van Study Smart With Chris.

PREMIUM samenvattingen zijn gecontroleerd op kwaliteit en speciaal geselecteerd om je leerdoelen nog sneller te kunnen bereiken!

Samenvatting - 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!

Lees volledige samenvatting
Deze samenvatting. +380.000 andere samenvattingen. Een unieke studietool. Een oefentool voor deze samenvatting. Studiecoaching met filmpjes.

Voorbeelden van vragen in deze samenvatting

What does the term MVC mean?
2
Which part of "MVC" is the "how"
2
Which part of MVC is the controllers minion?  
2
Can the controller always talk to the model directly?
2
Pagina 1 van 50