Re: different width in fastenumeration
Re: different width in fastenumeration
- Subject: Re: different width in fastenumeration
- From: Jens Alfke <email@hidden>
- Date: Tue, 24 Nov 2009 21:42:42 -0800
On Nov 24, 2009, at 3:47 AM, Hans van der Meer wrote:
> Doing NSDictionary *objects enumerate over its keys thus:
> for ( id key in [objects allKeys] ) {}
> According to the documentation allKeys returns a NSArray and NSArray's conform to NSFastEnumeration. However on building this code generates the following warning:
> Passing argument 3 of 'countByEnumeratingWithState:objects:count' with different width due to prototype. [XCode 3.2.1 64-bit on 10.6.2]
I've written that same kind of iteration many times and never seen that warning. It sounds like it's 64-bit specific, and perhaps related to some especially strict warning you've enabled. (I have a vague memory of that "different width due to prototype" warning being, in effect, completely useless.) What warning flags are you using?
—Jens_______________________________________________
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