Re: Where is NSList?
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.