JubeatPlus 3.9.11
Loading...
Searching...
No Matches
NSDictionary(TypedLookupExtension) Category Reference

Class-checked value lookup over NSDictionary. More...

#include <NSDictionary+TypedLookupExtension.h>

Instance Methods

(nullable id) - typedObjectForKey:class:
 The value for key when it is a kind of aClass, otherwise nil.
(nullable NSDictionary *) - dictionaryForKey:
 The value for key coerced to an NSDictionary.
(nullable NSArray *) - arrayForKey:
 The value for key coerced to an NSArray.
(nullable NSNumber *) - numberForKey:
 The value for key coerced to an NSNumber.
(nullable NSString *) - stringForKey:
 The value for key coerced to an NSString.

Detailed Description

Class-checked value lookup over NSDictionary.

Method Documentation

◆ arrayForKey:

- (NSArray *) arrayForKey: (NSString *) key

The value for key coerced to an NSArray.

Parameters
keyThe dictionary key.
Returns
The array, or nil when absent or not an array.
Ghidra address:
0x1ba174
Ghidra address:
0x1ba174

◆ dictionaryForKey:

- (NSDictionary *) dictionaryForKey: (NSString *) key

The value for key coerced to an NSDictionary.

Parameters
keyThe dictionary key.
Returns
The dictionary, or nil when absent or not a dictionary.
Ghidra address:
0x1ba0fc
Ghidra address:
0x1ba0fc

◆ numberForKey:

- (NSNumber *) numberForKey: (NSString *) key

The value for key coerced to an NSNumber.

Parameters
keyThe dictionary key.
Returns
The number, or nil when absent or not a number.
Ghidra address:
0x1ba1ec
Ghidra address:
0x1ba1ec

◆ stringForKey:

- (NSString *) stringForKey: (NSString *) key

The value for key coerced to an NSString.

Parameters
keyThe dictionary key.
Returns
The string, or nil when absent or not a string.
Ghidra address:
0x1ba264
Ghidra address:
0x1ba264

◆ typedObjectForKey:class:

- (id) typedObjectForKey: (NSString *) key
class: (Class) aClass 

The value for key when it is a kind of aClass, otherwise nil.

Parameters
keyThe dictionary key.
aClassThe class the value must be a kind of.
Returns
The value, or nil when key is absent or its value is not a kind of aClass.
Ghidra address:
0x1ba080
Ghidra address:
0x1ba080

The documentation for this category was generated from the following files: