• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: different width in fastenumeration
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: different width in fastenumeration


  • Subject: Re: different width in fastenumeration
  • From: "Clark S. Cox III" <email@hidden>
  • Date: Wed, 25 Nov 2009 11:00:09 -0500

You have the -Wconversion flag on.

Sent from my iPhone

On Nov 24, 2009, at 6:47, Hans van der Meer <email@hidden> 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]


What is happening? Am I doing something wrong here?

Hans van der Meer




_______________________________________________

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
_______________________________________________

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: 
 >different width in fastenumeration (From: Hans van der Meer <email@hidden>)

  • Prev by Date: Drawing: The Right place to keep bounds
  • Next by Date: Re: Drawing: The Right place to keep bounds
  • Previous by thread: Re: different width in fastenumeration
  • Next by thread: Re: different width in fastenumeration
  • Index(es):
    • Date
    • Thread