Logo
Pattern

Discover published sets by community

Explore tens of thousands of sets crafted by our community.

Objective-C Basics

36

Flashcards

0/36

Still learning
StarStarStarStar

Objective-C Class Definition

StarStarStarStar

Interface and implementation blocks define an Objective-C class.

StarStarStarStar

Objective-C Categories

StarStarStarStar

Categories allow addition of methods to existing classes.

StarStarStarStar

Objective-C ARC (Automatic Reference Counting)

StarStarStarStar

ARC automates memory management by keeping track of object ownership.

StarStarStarStar

Objective-C Synthesize Directive

StarStarStarStar

@synthesize generates getter and setter methods for properties.

StarStarStarStar

Objective-C Structs

StarStarStarStar

Structs are compound data types that group variables under a single name.

StarStarStarStar

Objective-C Method Declaration

StarStarStarStar

Methods in Objective-C are declared in the interface block.

StarStarStarStar

Objective-C Block Syntax

StarStarStarStar

Blocks are anonymous functions that capture surrounding variables.

StarStarStarStar

Objective-C Protocols

StarStarStarStar

Protocols define a list of methods that can be implemented by any class.

StarStarStarStar

Objective-C Strong vs. Weak References

StarStarStarStar

Strong and weak references affect memory management.

StarStarStarStar

Objective-C 'nil' and 'Nil'

StarStarStarStar

nil is used for object pointers, while Nil is used for class pointers.

StarStarStarStar

Objective-C NSDictionary

StarStarStarStar

NSDictionary is an immutable dictionary class that holds key-value pairs.

StarStarStarStar

Objective-C NSString

StarStarStarStar

NSString is an immutable string class.

StarStarStarStar

Objective-C Property Declaration

StarStarStarStar

@property is used to declare properties in the interface block.

StarStarStarStar

Objective-C Method Definition

StarStarStarStar

Methods in Objective-C are defined in the implementation block.

StarStarStarStar

Objective-C Enums

StarStarStarStar

Enumerations define a set of named integer values.

StarStarStarStar

Objective-C NSArray

StarStarStarStar

NSArray is an immutable array class that holds objects.

StarStarStarStar

Objective-C Dynamic Typing

StarStarStarStar

Objective-C allows objects to be typed dynamically with id.

StarStarStarStar

Objective-C NSException

StarStarStarStar

NSException is the base class for handling exceptions in Objective-C.

StarStarStarStar

Objective-C Autorelease Pool

StarStarStarStar

An autorelease pool is used for managing memory in a reference-counted environment.

StarStarStarStar

Objective-C for loop

StarStarStarStar

The for loop is used to repeat a block of code a specified number of times.

StarStarStarStar

Objective-C Interface Builder (IB) Outlets

StarStarStarStar

IBOutlets are properties that can be connected to user interface elements in Interface Builder.

StarStarStarStar

Objective-C Blocks as Callbacks

StarStarStarStar

Blocks can be passed as arguments to methods to be executed as callbacks.

StarStarStarStar

Objective-C Switch Statement

StarStarStarStar

The switch statement selects one of many blocks of code to be executed.

StarStarStarStar

Objective-C KVO (Key-Value Observing)

StarStarStarStar

KVO is a mechanism that allows objects to be notified of changes to specific properties of other objects.

StarStarStarStar

Objective-C Interface Builder (IB) Actions

StarStarStarStar

IBActions are methods that can be connected to user interface events in Interface Builder.

StarStarStarStar

Objective-C Memory Management: 'autorelease'

StarStarStarStar

The autorelease method adds the object to the current autorelease pool, to be released at a later time.

StarStarStarStar

Objective-C if-else statement

StarStarStarStar

The if-else conditional is used to perform different actions based on conditions.

StarStarStarStar

Objective-C try-catch

StarStarStarStar

Try-catch is used to catch exceptions in a block of code.

StarStarStarStar

Objective-C do-while loop

StarStarStarStar

The do-while loop is similar to a while loop, but the block of code is executed at least once.

StarStarStarStar

Objective-C While Loop

StarStarStarStar

The while loop executes a block of code as long as a condition is true.

StarStarStarStar

Objective-C Target-Action Mechanism

StarStarStarStar

The Target-Action mechanism is used by controls to invoke methods in response to user actions.

StarStarStarStar

Objective-C typedef

StarStarStarStar

typedef creates a new name for an existing type.

StarStarStarStar

Objective-C Selectors

StarStarStarStar

Selectors are a way to refer to a method by its name.

StarStarStarStar

Objective-C Delegates

StarStarStarStar

Delegates are used for callback mechanisms and control transfer between objects.

StarStarStarStar

Objective-C Memory Management: 'retain'

StarStarStarStar

The retain message increases the retain count of an object.

StarStarStarStar

Objective-C Memory Management: 'release'

StarStarStarStar

The release message decreases the retain count of an object.

Know
0
Still learning
Click to flip
Know
0
Logo

© Hypatia.Tech. 2024 All rights reserved.