Take the 2-minute tour ×  If a BOOL has a nice short name, it's
easy enough to write:  myBOOL = !myBOOL;  But what if the BOOL
has a long name?
objectWithLongishName.memberWithLongishName.submember.myBOOL =
!(objectWithLongishName.memberWithLongishName.submember.myBOOL);
. . . does not look so pretty.  I'm wondering if there is an
easy way to toggle the BOOL without entering its name twice?
share|improve this question Just curious, can you multiply a
bool by a numeric in Objective-C? Could you do soemthing like ob
jectWithLongishName.memberWithLongishName.submember.myBOOL*=-1;?
It seems like that would be a very very bad way to do it, but
I'm just wondering now if it would work... – 
FrustratedWithFormsDesigner Jul 22 '10 at 20:56 @frust: Other
issues aside, how would that work arithmetically? 0 * -1 = 0. – 
Georg Fritzsche Jul 22 '10 at 21:00 @Georg Fritzsche: hahaha!
Ok, good point. I thought I'd seen that trick some where, but I
can't remember where (though I know it wasn't Objective-C). – 
FrustratedW