Re: About the mysterious initWithBytes:length:encoding: NSString method
Re: About the mysterious initWithBytes:length:encoding: NSString method
- Subject: Re: About the mysterious initWithBytes:length:encoding: NSString method
- From: Jens Bauer <email@hidden>
- Date: Wed, 18 Feb 2004 16:07:24 +0100
Hi Stephane,
On Wednesday, Feb 18, 2004, at 14:37 Europe/Copenhagen, Stephane Sudre
wrote:
How is it possible that you can use this method in 10.2 when:
it was probably implemented as a method used internally by Apple.
- it's not in the documentation (it's in the 10.3 documentation)
Doesn't have to be in the documentation to work.
- it's not in the header (it's in the 10.3 headers)
Doesn't have to be in the header to be implemented. Just like C
functions don't have to have a prototype.
- it's not seen by class-dump in the Foundation and AppKit library
(it's not in 10.3 either).
I don't know about class-dump; I don't know the utility, heard of it,
though. But maybe it doesn't get everything ?
- it's causing a warning at build time
It will, because it's not in the header file.
Yet, it works...
That doesn't surprise me. ;)
In fact, recently, I could use a method similar to this one, however,
I'd need a unicode-autodetect.
Ofcourse, I could write that part myself.
Maybe it wasn't included in the documentation, because the developers
weren't interested in people using it, for some reason...
Love,
Jens
_______________________________________________
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.