procedural programming language
A language in which programs are defined by procedures and functions that operate on a set of data
values without decimal places
Add an int to a NSString Object?
(@"The integer is %i", number)
\n (backslash n)
What means a program ends normally?
A constant NSString Object?
@"Strings Rule" (The "@" symbol indicates an NSString object)
What is an object?
A set of variables and associated methods. An object can be sent messages to cause one of it methods to be executed.
Print stuff in objective C?
A special name that indicates precisely where the program begins execution
Import a system file?
Import a file you created?
Compile at Command Line?
gcc -framework Foundation filename -o progname
Look in current directory?
./ (period backslash)
GNU objective-c compiler?
Yellow exclamation mark
object file (compiled file)
perl source file
OBJECTIVE C++ source file
OBJECTIVE C source file
c++ language source file
C language source file
Who pioneered the C programming language?
Dennis Ritchie @ Bell Labs
The range of value associated with each data type is???
Data for an object is sotred in its instance variables and is accessed only by the object's methods. This maintains data integrity.
How to combine alloc and init?
ClassName *newInstance = [ClassName new];
Setters and Getters are referred to as?
Holds a memory address "pointing" to the location of the object's data in memory
indicates it is creating a reference (or pointer) to an object
Free memory of an object?
Combine three-line sequence to declare, allocate, and initialize?
ClassName *newInstance = [[ClassName alloc] init];
Initialize an object?
newInstance = [newInstance init];
Create a new instance? (allocate new memory space for object)
newInstance = [ClassName alloc];
Define a new variable for a new instance of class?
In the @implementation section you?
Define the Methods
In the @interface section you?
Declare the Methods
+ before method indicates?
- before method indicates?
Method declarations in interface?
-(returnType) methodName: (argType) argName;
Syntax for using methods in Objective-C
[ClassOrInstance method]; [receiver message]; [receiver message: input];
Applying a method to an object?
affects the "state" of that object
The actions performed on the instance
A unique occurence of class. A concrete representation of a class. Instances are objects, typically created by sending an "alloc" or "new" message to a class object
A set of instance variable and methods that have access to those variables. After a class is defined, instances of the class (that is objects) can be created. A blueprint.