Re: Threaded drawing
Re: Threaded drawing
- Subject: Re: Threaded drawing
- From: Graham Cox <email@hidden>
- Date: Fri, 06 Dec 2013 21:14:01 +0100
On 6 Dec 2013, at 8:37 pm, Jens Alfke <email@hidden> 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@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