> On 04 Jun 2015, at 02:36, Britt Durbrow > <bdurb...@rattlesnakehillsoftworks.com> wrote: > > >> On Jun 3, 2015, at 11:30 AM, Mark Wright <blue.bucon...@virgin.net> wrote: >> >> For what it’s worth, I’ve never had that problem either. Most of the time >> self.whatever is used for property access, _whatever is used for ivar access >> and that’s about it. > > Yup. This is what I meant about properties vs ivars being obvious from > context: the only way to do a property access is by causing a message send; > and there are only three direct ways to do that in Objective-C: > somePointer.accessor (i.e, dot notation); [somePointer accessor] and > [somePointer setAccessor:aNewValueGoesHere]; and a direct call to > objc_msgSend().
There’s also key-value coding, i.e. [obj valueForKey: @“accessor”] and [obj setValue: @1 forKey: @“accessor”], and the implicit occurrences thereof in e.g. XIB loading. Cheers, -- Uli Kusterer “The Witnesses of TeachText are everywhere...” http://zathras.de _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com