On Sat, Apr 4, 2009 at 2:21 PM, Marcel Weiher <marcel.wei...@gmail.com> wrote: >> But clearly that is not correct, since you keep saying that it is >> trivial to distinguish them. So, please fill out the following >> function: >> >> NSString *IsNSOrCFArray(id foo) // returns @"NSArray" or @"CFArray" >> { >> .... >> } >> >> And also please indicate what this function should return for >> IsNSOrCFArray([NSArray array]). > > As I've repeated multiple times now: it is impossible to distinguish a > CFArray from an NSCFArray because they are the same thing. It is trivial to > distinguish other NSArrays.
So fill in the code. This isn't some abstract arena of ideas. It's programming. We build real things here. Since you claim to be able to differentiate between them, show us the code. You say it's possible, prove it. Fill out the function template I provided above and demonstrate what you're talking about. Mike _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com