Class-checked value lookup over NSDictionary.
More...
#include <NSDictionary+TypedLookupExtension.h>
|
| (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.
|
Class-checked value lookup over NSDictionary.
◆ arrayForKey:
| - (NSArray *) arrayForKey: |
|
(NSString *) | key |
|
The value for key coerced to an NSArray.
- Parameters
-
- 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
-
- 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
-
- 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
-
- 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
-
| key | The dictionary key. |
| aClass | The 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: