Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Duke Leto

macrumors regular
Original poster
Mar 17, 2008
166
0
I am getting an NSKeyValueUndefinedSetter error in my app... I found that what was happening was that I was trying to access an object in an array that was "Invalid". Another problem I had was that an if statement didn't seem to be "listening". It knew that a certain boolean was false, yet it continued anyway.

I think that the second problem caused the first, but I do not know if the problem is in the following:
PHP:
BOOL touchIsValid = !([infoView pointInside:touchPtMain withEvent:event]) && (touchPtMain.y < 400);
	if(touchIsValid && toolSelected == @"aSelectedString" && !isLandscape)

You see, that if statement continues even when isLandscape is YES - but only sometimes!

Also, not sure if it helps though, I get EXC_BAD_ACCESS.

I am now convinced it is a problem with isLandscape: when I take that part out, it is ok!
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.