Re: Newbie (to Cocoa) questions
Re: Newbie (to Cocoa) questions
- Subject: Re: Newbie (to Cocoa) questions
- From: <email@hidden>
- Date: Thu, 7 Mar 2002 20:50:12 -0000
Lance Bland <email@hidden> said:
>
On Thursday, March 7, 2002, at 03:04 PM, Erik M. Buck wrote:
>
>
> One toll free bridged object is NSString.
>
> [ [clip]
>
>
NSString is a class cluster. By design, you don't know what it will
>
return as a created instance. Is there a design specification (is it
>
documented) that says everything it returns is toll-free with CFString,
>
or just NSCString hidden class?
>
>
Or is what you are saying implementation dependent?
>
>
-lance
It's documented in the OS X Developer Release notes for Foundation Framework.
There are probably enough apps out there that are counting on this that it is
too late for Apple to change it now even if they wanted to.
I think several of the "toll-free bridged" types are class clusters. I don't
see why that would influence things. True, you don't know which specific
class any particular instance will be an instance of, but you know it will
respond to the NSString interface.
- Dennis D.
_______________________________________________
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.