_____ is one of the main advantages of object-oriented code and allows objects to 'hide away' much of their complexity, operating at times like a proverbial 'black-box'.
Front
Encapsulation
Back
Protocols are adopted by adding a _____- _______ list of protocols inside _____ ______ after the _______ _________ in a class's _______ block
To create a "Command Line Tool" type project from a template you must choose _____ from the ______ menu in the template selection area
Front
Application...Mac OS X
Back
Correct the error: NSMutableArray items = [[NSMutableArray alloc] init];
Front
Replace 'items' with '*items'
Back
Correct the error: NSMutableArray items = [[NSMutableArray init] alloc];
Front
Swap the locations of init and alloc
Back
This symbol denotes a method as being an instance method
Front
-
Back
Property attribute where the setter stores the assigned value but does not perform any memory management. Should only be used for storing non-object data (int, float, etc). Objective-C objects should use strong or weak attributes instead
Front
assign
Back
Property attribute that synthesizes accessors that are not thread safe
Front
nonatomic
Back
When creating a class implementation file, you begin with the _____ keyword and close with the _____ keyword
Front
@implementation...@end
Back
Zeroing weak referencing should be used for _____ and _____ to prevent inadvertent retain cycles
Front
delegates ... data sources
Back
Xcode sequence to convert non-ARC apps to ARC
Front
Edit>Refactor>Convert to Objective-C ARC
Back
Objective-C's protocols are really about communicating _____ _______
Front
developer intent
Back
Rewrite as a 'foreach' construction:for(int i = 0; i < [items count]; i++){NSLog(@"%@", items objectAtIndex:i]);} Use an NSString called 's' as the variable.
Front
for(NSString *s in items){ NSLog(@"%@", s)};
Back
Square bracket syntax for calling a method
Front
[receiver message];
Back
Xcode sequence to examine an app for memory leaks or retain cycles
Front
Product>Profile>Leaks>Profile
Back
Property attribute that causes the setter to store a strong reference to the assigned value
Front
strong
Back
Given: [graduationParty addAttendee: @"Aunt Jane" withDish: @"deviled eggs"]; The 'receiver' is _______; the 'selector' is _________; the 'argument(s)' is(are) _______
Each class should have a ______ initializer, a single method responsible for performing all of the object's setup and initialization. Typically it is the initializer with the largest number of arguments.