This should work:
@interface MyClass
{
int _doubleDigits[10];
}
@property(readonly) int *doubleDigits;
@end
@implementation MyClass
- (int *)doubleDigits
{
return _doubleDigits;
}
@end
More Related Contents:
- How to create buttons that add integers to a Mutable Array?
- Get an object properties list in Objective-C
- Synthesized property and variable with underscore prefix: what does this mean? [duplicate]
- Must every ivar be a property?
- @synthesize vs @dynamic, what are the differences?
- In Objective-C on iOS, what is the (style) difference between “self.foo” and “foo” when using synthesized getters?
- How can I add properties to an object at runtime?
- When to access properties with ‘self’
- What is the difference between ivars and properties in Objective-C
- Store data in MKAnnotation?
- Is there any reason to declare ivars if you’re using properties exclusively in Objective-C?
- Sorting two NSArrays together side by side
- Convert NSArray to NSString in Objective-C
- Swift readonly external, readwrite internal property
- What is the visibility of @synthesized instance variables?
- How is release handled for @synthesized retain properties?
- How do I declare an array as a constant in Objective-c?
- Valid use of accessors in init and dealloc methods?
- When should I use @synthesize explicitly?
- error: writable atomic property cannot pair a synthesized setter/getter with a user defined setter/getter
- Objective C – Synthesize property [duplicate]
- Reason to use ivars vs properties in objective c
- Property ” not found on object of type ‘id’
- @property and @synthesize
- Does a private @property create an @private instance variable?
- Properties and Instance Variables in Objective-C
- What’s the purpose of an ivar when a property exists?
- Why do I need to write @synthesize when I provide getter and setter?
- How to declare a two dimensional array of string type in Objective-C?
- Objective-C Difference between setting nil and releasing