On 6 Dec 2013, at 8:37 pm, Jens Alfke <[email protected]> wrote:

> It depends on whether tileRect is an instance variable.

It’s not

> (This is one of many reasons why I believe ivar names should be 
> distinguished, e.g. by prefixing them with “_”. Their behavior is different 
> enough from other variables that it’s important to be aware of them when 
> reading code.)

I completely concur, which is why I use mIvarName for mEmbers (a C++ habit, 
rather than the Cocoa one of _ivarName), also gLobals, sTatics, fIelds, and 
probably others that escape me for the moment. Only locals have no special 
naming.

But I found out the answer to my question regarding blocks a few moments after 
posting, as is usual ;)

—Graham



_______________________________________________

Cocoa-dev mailing list ([email protected])

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 [email protected]

Reply via email to