Re: Toll-free bridge type at runtime
Re: Toll-free bridge type at runtime
- Subject: Re: Toll-free bridge type at runtime
- From: Michael Ash <email@hidden>
- Date: Sat, 4 Apr 2009 14:28:33 -0400
On Sat, Apr 4, 2009 at 2:21 PM, Marcel Weiher <email@hidden> 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 (email@hidden)
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:
This email sent to email@hidden