• 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: NSEnumerator and the missing peek method
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSEnumerator and the missing peek method


  • Subject: Re: NSEnumerator and the missing peek method
  • From: Nick Zitzmann <email@hidden>
  • Date: Thu, 29 Sep 2005 15:44:25 -0600


On Sep 29, 2005, at 3:27 PM, Jan Vereecken wrote:

That is the solution I use at the moment. I was only wondering if someone maybe found a way to extend NSEnumerator with a new method to peek which would make following code possible.

As JCR already pointed out, enumerators may enumerate unordered objects, so what you're trying to do is impossible with NSEnumerator. You could, however, write your own enumerator class that has such a method, and add an NSArray category to return an instance of your custom enumerator for the array.


Nick Zitzmann
<http://www.chronosnet.com/>


_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >NSEnumerator and the missing peek method (From: Jan Vereecken <email@hidden>)
 >Re: NSEnumerator and the missing peek method (From: Nick Zitzmann <email@hidden>)
 >Re: NSEnumerator and the missing peek method (From: Jan Vereecken <email@hidden>)

  • Prev by Date: 2 problems with NSOutlineView
  • Next by Date: Re: NSEnumerator and the missing peek method
  • Previous by thread: Re: NSEnumerator and the missing peek method
  • Next by thread: Re: NSEnumerator and the missing peek method
  • Index(es):
    • Date
    • Thread