Get class contained in RLMArray

bitemybyte

I need to distinguish between Class1 and Class2. Surely I can get first objects and do isKindOfClass: but it seems kinda sloppy.

@property RLMArray<Class1 *><Class1> *arr1;
@property RLMArray<Class2 *><Class2> *arr2;

How do I retrieve the class contained in RLMArray?

Thanks.

jpsim

You can get the class name held by RLMArray's using its objectClassName property:

The class name (i.e. type) of the RLMObjects contained in this RLMArray.

@property (readonly, copy, nonatomic) NSString *_Nonnull objectClassName;

Source

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

How to add Realm Object class into RLMArray

From Dev

webdriver - Get a count on all class names contained within a specific div

From Dev

Defining when an object is contained in a class

From Dev

Access a method of a class contained as a vector of pointers to that class

From Dev

Get the name of a function contained in variable

From Dev

Get HTML element contained in range

From Dev

Get [x,z] contained in frustum

From Dev

Get HTML element contained in range

From Dev

Get the name of a function contained in variable

From Dev

Injecting dependencies into classes contained in a facade class

From Dev

STL string member in class contained in std::vector

From Dev

Linq query not including items contained in list (of class)

From Dev

Writing methods for classes contained in another class

From Dev

What is the benefit of having a whole program contained in a class?

From Dev

How to call a async function contained in a class?

From Dev

Injecting dependencies into classes contained in a facade class

From Dev

C++ Class Contained Exception Handling

From Dev

Iterate through vector contained in another class

From Dev

Get text occurrences contained in a specified area with iTextSharp

From Dev

Get Rows Contained in Comma Separated String

From Dev

Get all member of groups contained by OU

From Dev

Get text contained within the parentheses at the end of string

From Dev

How to get an Array of items contained in a List

From Dev

Get self-contained EXE's path?

From Dev

How to get the length of an Array that is contained within an Object?

From Dev

NSArray of NSArrays: Get value of index of contained array

From Dev

Get one element of object that is NOT contained in array

From Dev

Get exit status from Pipe contained in brackets

From Dev

Get all nodes from relationship contained in a list

Related Related

  1. 1

    How to add Realm Object class into RLMArray

  2. 2

    webdriver - Get a count on all class names contained within a specific div

  3. 3

    Defining when an object is contained in a class

  4. 4

    Access a method of a class contained as a vector of pointers to that class

  5. 5

    Get the name of a function contained in variable

  6. 6

    Get HTML element contained in range

  7. 7

    Get [x,z] contained in frustum

  8. 8

    Get HTML element contained in range

  9. 9

    Get the name of a function contained in variable

  10. 10

    Injecting dependencies into classes contained in a facade class

  11. 11

    STL string member in class contained in std::vector

  12. 12

    Linq query not including items contained in list (of class)

  13. 13

    Writing methods for classes contained in another class

  14. 14

    What is the benefit of having a whole program contained in a class?

  15. 15

    How to call a async function contained in a class?

  16. 16

    Injecting dependencies into classes contained in a facade class

  17. 17

    C++ Class Contained Exception Handling

  18. 18

    Iterate through vector contained in another class

  19. 19

    Get text occurrences contained in a specified area with iTextSharp

  20. 20

    Get Rows Contained in Comma Separated String

  21. 21

    Get all member of groups contained by OU

  22. 22

    Get text contained within the parentheses at the end of string

  23. 23

    How to get an Array of items contained in a List

  24. 24

    Get self-contained EXE's path?

  25. 25

    How to get the length of an Array that is contained within an Object?

  26. 26

    NSArray of NSArrays: Get value of index of contained array

  27. 27

    Get one element of object that is NOT contained in array

  28. 28

    Get exit status from Pipe contained in brackets

  29. 29

    Get all nodes from relationship contained in a list

HotTag

Archive