• 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: Implementing fast enumeration
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Implementing fast enumeration


  • Subject: Re: Implementing fast enumeration
  • From: Ben <email@hidden>
  • Date: Sat, 3 May 2008 18:08:28 +0100


On 3 May 2008, at 02:43, Adam R. Maxwell wrote:


On May 2, 2008, at 12:18 PM, Ben wrote:

Re-sending as this did not seem to get make it to the list.

I have been reading the documentation for implementing the NSFastEnumeration protocol and am having some difficulties following it.

[...]

Apologies if these are basic questions, but I got decidedly lost trying to follow the docs.

I also got lost in the docs (I should file a bug one of these days). Anyway, take a look at CFArray.c from Apple's CF source, specifically the _CFArrayFastEnumeration function. Having that for an example really helped.


hth,
Adam

Thanks for that pointer, I'll spend some time digging through it. I also found your FVPriorityQueue code in the Bibdesk repository (mentioning it here to help others). Re-designing my class using a system closer to those two files looks like it will provide faster and neater code too.


Also it would appear that my original post has turned up a day late. Sorry about the extra noise.

Ben.
_______________________________________________

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: 
 >Implementing fast enumeration (From: Ben <email@hidden>)
 >Re: Implementing fast enumeration (From: "Adam R. Maxwell" <email@hidden>)

  • Prev by Date: List Running apps and windows
  • Next by Date: Re: Newbie Question: Controls not redrawing on changes
  • Previous by thread: Re: Implementing fast enumeration
  • Next by thread: Implementing fast enumeration
  • Index(es):
    • Date
    • Thread