クラスがあるとします。
@interface FooBar : NSObject
@property(readonly, getter = _getSpace) int** space;
@end
spaceプロパティは次のように実装されます。
@implementation FooBar
int m_space1[256];
int m_space2[256];
int* m_space[2] = { m_space1, m_space2};
-(int **) _getSpace {
return m_space;
}
@end
次に、以下を使用してint[2][256]配列を変更することは合法ですか。
FooBar * f = [[FooBar alloc] init];
f.space[1][120] = 0;
?