Re: NSArrayController addObject or insertObject:atArrangedObjectIndex:
Re: NSArrayController addObject or insertObject:atArrangedObjectIndex:
- Subject: Re: NSArrayController addObject or insertObject:atArrangedObjectIndex:
- From: Graham Cox <email@hidden>
- Date: Tue, 22 Sep 2009 23:00:11 +1000
On 22/09/2009, at 10:40 PM, BareFeet wrote:
NSLog(@"setDataRows: count == %@", [newDataRows count]);
Once I removed the NSLog line (or just the [newDataRows count]
method), it works fine.
Two followup questions:
1. Why can't I use the array count in the NSlog like that?
[<collection> count] returns an NSUInteger, not an object, so the %@
format specifier is incorrect - you want %d. I expect that was causing
some mangling.
--Graham
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please 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