Explore tens of thousands of sets crafted by our community.
Objective-C Basics
36
Flashcards
0/36
Objective-C Class Definition
Interface and implementation blocks define an Objective-C class.
Objective-C Categories
Categories allow addition of methods to existing classes.
Objective-C ARC (Automatic Reference Counting)
ARC automates memory management by keeping track of object ownership.
Objective-C Synthesize Directive
@synthesize generates getter and setter methods for properties.
Objective-C Structs
Structs are compound data types that group variables under a single name.
Objective-C Method Declaration
Methods in Objective-C are declared in the interface block.
Objective-C Block Syntax
Blocks are anonymous functions that capture surrounding variables.
Objective-C Protocols
Protocols define a list of methods that can be implemented by any class.
Objective-C Strong vs. Weak References
Strong and weak references affect memory management.
Objective-C 'nil' and 'Nil'
nil is used for object pointers, while Nil is used for class pointers.
Objective-C NSDictionary
NSDictionary is an immutable dictionary class that holds key-value pairs.
Objective-C NSString
NSString is an immutable string class.
Objective-C Property Declaration
@property is used to declare properties in the interface block.
Objective-C Method Definition
Methods in Objective-C are defined in the implementation block.
Objective-C Enums
Enumerations define a set of named integer values.
Objective-C NSArray
NSArray is an immutable array class that holds objects.
Objective-C Dynamic Typing
Objective-C allows objects to be typed dynamically with id.
Objective-C NSException
NSException is the base class for handling exceptions in Objective-C.
Objective-C Autorelease Pool
An autorelease pool is used for managing memory in a reference-counted environment.
Objective-C for loop
The for loop is used to repeat a block of code a specified number of times.
Objective-C Interface Builder (IB) Outlets
IBOutlets are properties that can be connected to user interface elements in Interface Builder.
Objective-C Blocks as Callbacks
Blocks can be passed as arguments to methods to be executed as callbacks.
Objective-C Switch Statement
The switch statement selects one of many blocks of code to be executed.
Objective-C KVO (Key-Value Observing)
KVO is a mechanism that allows objects to be notified of changes to specific properties of other objects.
Objective-C Interface Builder (IB) Actions
IBActions are methods that can be connected to user interface events in Interface Builder.
Objective-C Memory Management: 'autorelease'
The autorelease method adds the object to the current autorelease pool, to be released at a later time.
Objective-C if-else statement
The if-else conditional is used to perform different actions based on conditions.
Objective-C try-catch
Try-catch is used to catch exceptions in a block of code.
Objective-C do-while loop
The do-while loop is similar to a while loop, but the block of code is executed at least once.
Objective-C While Loop
The while loop executes a block of code as long as a condition is true.
Objective-C Target-Action Mechanism
The Target-Action mechanism is used by controls to invoke methods in response to user actions.
Objective-C typedef
typedef creates a new name for an existing type.
Objective-C Selectors
Selectors are a way to refer to a method by its name.
Objective-C Delegates
Delegates are used for callback mechanisms and control transfer between objects.
Objective-C Memory Management: 'retain'
The retain message increases the retain count of an object.
Objective-C Memory Management: 'release'
The release message decreases the retain count of an object.
© Hypatia.Tech. 2024 All rights reserved.