Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: NSArrayController addObject or insertObject:atArrangedObjectIndex:
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSArrayController addObject or insertObject:atArrangedObjectIndex:




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


References: 
 >NSArrayController addObject or insertObject:atArrangedObjectIndex: (From: BareFeet <email@hidden>)
 >Re: NSArrayController addObject or insertObject:atArrangedObjectIndex: (From: Dave Keck <email@hidden>)
 >Re: NSArrayController addObject or insertObject:atArrangedObjectIndex: (From: BareFeet <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.