Re: NSNull/NSarray .. count
Re: NSNull/NSarray .. count
- Subject: Re: NSNull/NSarray .. count
- From: Buddy Kurz <email@hidden>
- Date: Thu, 22 Mar 2007 22:31:52 -0700
My guess would be that whatever [self planning] is was not retained
and the memory got reused by an instance of NSNull
On Mar 22, 2007, at 10:23 PM, arri wrote:
i'm baffled;
calling this:
NSLog(@"planning-count %d", [[self planning] count]);
..returns the expected count/number in the run-log,
but when doing this on the next line:
int cnt = [[self planning] count];
..the app hangs/quits, spitting this message:
2007-03-23 06:01:30.874 Placid[1265] *** -[NSNull count]: selector
not recognized [self = 0xa0806040]
2007-03-23 06:01:30.874 Placid[1265] An uncaught exception was raised
2007-03-23 06:01:30.874 Placid[1265] *** -[NSNull count]: selector
not recognized [self = 0xa0806040]
2007-03-23 06:01:30.874 Placid[1265] *** Uncaught exception:
<NSInvalidArgumentException> *** -[NSNull count]: selector not
recognized [self = 0xa0806040]
i would really like to get some pointers to what's going on here.
note that this is called from the display-link thread.
thanks
arri
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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