Nil-terminated object list?
Nil-terminated object list?
- Subject: Nil-terminated object list?
- From: Nick Zitzmann <email@hidden>
- Date: Mon, 19 Jul 2004 10:41:42 -0600
Here's something I've been wondering about that I haven't seen
discussed in the archives...
How does one make a method that takes a nil-terminated object list as
an argument, like NSArray's +arrayWithObjects: and NSDictionary's
+dictionaryWithObjectsAndKeys: methods?
Situation: I'd like to write an instance method in an NSMutableArray
category that adds a nil-terminated object list to an existing
NSMutableArray, but I can't find any documentation or examples on how
to do this. I've searched and found some marg methods in the
Objective-C runtime, but I can't figure out how to use them... Does
anyone know how to do this, and if so, how?
Nick Zitzmann
<
http://www.chronosnet.com/>
_______________________________________________
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.