• 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: Where is NSList?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Where is NSList?


  • Subject: Re: Where is NSList?
  • From: Bob Hutchison <email@hidden>
  • Date: Wed, 28 Jul 2004 07:36:51 -0400

On Jul 27, 2004, at 7:07 PM, Tim Conkling wrote:

std::map, std::multimap, and std::set also offer this capability. std::deque, std::vector, and a few others don't, that's correct. I'm looking for an NS object with the same sort of functionality as std::list (or even std::map). From the responses my original post has generated, I am going to assume that such an object does not exist, and move on.

Thanks,
Tim


Hi Tim,

I think you are not going to find what you want in a collection designed for ObjectiveC, or most other OO languages for that matter. If I understand what you are saying then std::list dispenses wrapped objects where the wrapper knows the collection it came from. How do you get the object itself? I suppose that there could be some template magic with multiple inheritance going on?

Now, I'm wondering why you don't just use std::list in ObjectiveC++? This is all kind of new again to me (I used ObjectiveC in 1989, maybe earlier, before Cox's book was published anyway) and am just getting back into it now (I abandoned C++ in 1992 and I've got no desire at all to go back). Anyway, have a look at ObjectiveC++. All you have to do in XCode is rename your file to xxx.mm from xxx.m

If you try and it works I'd love to hear. Actually I'd love to hear either way. Curious how this will play into ObjectiveC's reference counting, possibly without a hitch.

Cheers,
Bob
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


References: 
 >Where is NSList? (From: Tim Conkling <email@hidden>)
 >Re: Where is NSList? (From: David Brown <email@hidden>)
 >Re: Where is NSList? (From: Tim Conkling <email@hidden>)
 >Re: Where is NSList? (From: Allan Odgaard <email@hidden>)
 >Re: Where is NSList? (From: Tim Conkling <email@hidden>)

  • Prev by Date: Re: Where is NSList?
  • Next by Date: Re: Where is NSList?
  • Previous by thread: Re: Where is NSList?
  • Next by thread: Re: Where is NSList?
  • Index(es):
    • Date
    • Thread