• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Is it me or XCode 1.2?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Is it me or XCode 1.2?


  • Subject: Re: Is it me or XCode 1.2?
  • From: Brent Gulanowski <email@hidden>
  • Date: Sat, 24 Apr 2004 22:41:50 -0400

It would appear that your tree is returning an uninitialized pointer
value. Is that possible?


On Apr 24, 2004, at 12:57 AM, Phil Curry wrote:

> 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.
>
>
--
Brent Gulanowski				email@hidden

[demime 0.98b removed an attachment of type application/pkcs7-signature which had a name of smime.p7s]
_______________________________________________
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.


  • Follow-Ups:
    • Re: Is it me or XCode 1.2?
      • From: Phil Curry <email@hidden>
References: 
 >Is it me or XCode 1.2? (From: Phil Curry <email@hidden>)

  • Prev by Date: Re: Resource files and Copy Files phase
  • Next by Date: Re: Resource files and Copy Files phase
  • Previous by thread: Is it me or XCode 1.2?
  • Next by thread: Re: Is it me or XCode 1.2?
  • Index(es):
    • Date
    • Thread