| 1 | #import <Foundation/Foundation.h> |
|---|---|
| 2 | |
| 3 | struct ThreeObjects |
| 4 | { |
| 5 | id one; |
| 6 | id two; |
| 7 | id three; |
| 8 | }; |
| 9 | |
| 10 | int main() |
| 11 | { |
| 12 | NSArray *array1 = @[@0xDEADBEEF, @0xFEEDBEEF, @0xBEEFFADE]; |
| 13 | NSArray *array2 = @[@"Hello", @ "World"]; |
| 14 | NSDictionary *dictionary = @{@1: array2, @"Two": array2}; |
| 15 | ThreeObjects *tobjects = new ThreeObjects(); |
| 16 | tobjects->one = array1; |
| 17 | tobjects->two = array2; |
| 18 | tobjects->three = dictionary; |
| 19 | id* objects = (id*)tobjects; |
| 20 | return 0; // break here |
| 21 | } |
| 22 |
