Re: Some advice requested on debugging a difficult problem. iOS.
Alex Zavatone
I just replicated this in a sample and ran a short test to see what the results are.
toggle quoted message
Show quoted text
@interface MyObject : NSObject @property(strong, nonatomic, readwrite,getter=getRootAPIData) NSDictionary *rootUrlMap; @end @implementation MyObject - (id)init { if (self == [super init]) { _rootUrlMap = [NSDictionary dictionaryWithObjectsAndKeys:@"Hi",@"myKey", nil]; } return self; } @end MyObject *myObject = [MyObject new]; NSLog(@"%@", myObject.rootUrlMap); NSLog(@"%@", myObject.getRootAPIData); NSLog(@"%@", [myObject getRootAPIData]); 2019-03-26 11:01:30.116353-0500 Test[80252:7074112] { myKey = Hi; } 2019-03-26 11:01:30.116528-0500 Test[80252:7074112] { myKey = Hi; } 2019-03-26 11:01:30.116654-0500 Test[80252:7074112] { myKey = Hi; } So, the getter and the property name both allow accessing the property. But should we expect it to if the getter has been redefined? Thanks again. Alex Zavatone
|
|