Re: Toll-free bridge type at runtime
Re: Toll-free bridge type at runtime
- Subject: Re: Toll-free bridge type at runtime
- From: Marcel Weiher <email@hidden>
- Date: Thu, 2 Apr 2009 23:08:54 -0700
On Apr 2, 2009, at 18:44 , Michael Ash wrote:
On Thu, Apr 2, 2009 at 7:37 PM, Marcel Weiher
<email@hidden> wrote:
It can be
distinguished from an array created using CFArrayCreate, just as it
can be distinguished from an array created using [NSArray array],
Glad that you agree that the test can be performed, which is
different from
what you said before:
On Apr 1, 2009, at 21:44 , Michael Ash wrote:
The test cannot be performed, because the question does not make
any sense.
I am not agreeing that "the test" can be performed. "The test" is to
distinguish between a CFArray and an NSArray.
Which is still fairly trivial except for the one special (but common/
important) case where they are the same, which is if the NSArray in
question is an NSCFArray.
What I am saying above
is that it is possible to distinguish between a custom NSArray
subclass and a subclass provided by the system. These are not the same
thing.
How are they not the same thing? If you say "NSArray", what do you
mean? Do you mean the NSArray class itself? In that case, this is
all pointless, because you are hardly going to get actual NSArray
instances, it being an abstract superclass and all. If by "NSArray"
something that is an NSArray (so NSArray and its subclasses), then
that is exactly the same thing, because CFArray is a system-provided
subclass of NSArray.
Or do you mean NSCFArray when you say NSArray? That would be pretty
tautologically pointless and also wrong, because NSArray and NSCFArray
are simply not the same thing, the fact that you get NSCFArrays when
you ask NSArray for instances notwithstanding.
On another note, I find your habit of quoting what I say and then
stating "so you really mean X" to be extremely irritating. I don't
mind if you disagree with me, but please do so explicitly, rather than
taking my own words and then twisting them to suit you.
Sorry you feel irritation, but I am not "twisting" your words, I am
just quoting you. The inconsistencies in what you claim are in your
words, not in my quoting of them.
Marcel
_______________________________________________
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