chap 12 to 14 - objective-C Flashcards

1
Q

message send

A

always surrounded by square brackets.always has two parts:

  • a pointer to the object that is receiving the message.
  • the name of the method to be triggered.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

objects in memory

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

framework

A

a library of classes that you use to write programs.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

method

A

a function triggered by a message.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

object

A

holds data like a structure except that it also contains a set of functions that act upon that data.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

class

A

describes a particular type of object. This description includes methods and instance variables where an object of this type stores its data. You ask a class to create an object of its type for you on the heap. We say that the resulting object is an instance of that class.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

message send

A

always surrounded by square brackets. always has two parts: a pointer to the object that is receiving the message. the name of the method to be triggered.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

id

A

a pointer of some kind of Objective-C object. id delegate; no asterisk needed. id implies the asterisk.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

class method

A

you cause the method to execute by sending a message to the class. the method returns a pointer to an instance of that class. NSDate *now = [NSDate date];

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

instance method

A

You cause the method to execute by sending a message to an instance of a class. double seconds = [now timeIntervalSince1970];

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

alloc

A

class method that returns a pointer to a new object that needs to be initialized. Pointer is then used to send the new object the message intit. NSDate *now = [[NSDate alloc] init];

How well did you know this?
1
Not at all
2
3
4
5
Perfectly