Is it me or XCode 1.2?
Is it me or XCode 1.2?
- Subject: Is it me or XCode 1.2?
- From: Phil Curry <email@hidden>
- Date: Fri, 23 Apr 2004 21:57:41 -0700
I could have sworn this code worked before moving to Xcode 1.2
But now, if I build/run it runs without error. If I build/debug, the
identifier 'node' in the line:
if ( [node numChildren] > 0) {
shows node has a value of 0x7 and I get a bad EXC_BAD_ACCESS if I try
to step through that line.
Why would it execute but not be valid if I step through with the
debugger?
Thanks.
-Phil
===========================================
- (void)drawRect:(NSRect)canvas
{
// locals
int i;
Node* tNode;
// body
[self describeGrid];
[self drawBackground];
[self resetRightMostNode];
for ( i = 1; i >= 0; i-- ) {
tNode = [tree objectAtIndex:i];
[self setXForNode:tNode];
}
<snip>
} // drawRect
- (void)setXForNode:(Node*)node
{
// locals
int i;
NSNumber* num;
// body
if ( [node numChildren] > 0) {
for ( i = 0; i < [node numChildren]; i++ ) {
[self setXForNode: [[node children] objectAtIndex:i]];
} // for
[node setXPosition: [[[node children] objectAtIndex:0]
position].x];
} // if
<snip>
} // setX
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.