Re: Accessing members from NSDictionary
Re: Accessing members from NSDictionary
- Subject: Re: Accessing members from NSDictionary
- From: Pax <email@hidden>
- Date: Fri, 05 Apr 2013 15:03:24 +0100
Ah, I see. I shall try that out. And, referring to my earlier question, would I be able to:
[[device objectForKey:@"InformationWindowRef"].infoWindow cascadeTopLeftFromPoint:NSMakePoint(20,20)];
On 5 Apr 2013, at 15:00, Tom Davie <email@hidden> wrote:
> The reason it's a bad idea is because it means that you have two strongly coupled components of code. You can not change the implementation of the class with the ivar, without also changing the implementation of the other class now.
>
> I don't really understand your argument about lines of code or readability, you would be replacing
>
> someObject->someIvar = 56.9f;
>
> with
>
> someObject.someProperty = 56.9f;
>
> and
>
> {
> float someIvar;
> }
>
> with
>
> @property (assign, nonatomic) float someProperty;
>
> So neither is really true.
>
> Thanks
>
> Tom Davie
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden