Re: NSMutableArray count causes EXC_BAD_ACCESS
Re: NSMutableArray count causes EXC_BAD_ACCESS
- Subject: Re: NSMutableArray count causes EXC_BAD_ACCESS
- From: Chris Suter <email@hidden>
- Date: Mon, 16 Aug 2010 09:57:07 +1000
Hi Mark,
On Mon, Aug 16, 2010 at 9:00 AM, Mark Woollard
<email@hidden> wrote:
[members count] returns an integer, not a class instance, so you need to use:
NSLog(@"Count: %d",[members count]);
Actually, -[NSArray count] returns an NSUInteger, so you should really use:
NSLog (@"Count: %lu", (long)[members count]);
I know the cast is not particularly pleasant. Apple should probably add format modifiers for NSUInteger and NSInteger.
Kind regards,
Chris
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden