• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: About the mysterious initWithBytes:length:encoding: NSString method
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >About the mysterious initWithBytes:length:encoding: NSString method (From: Stephane Sudre <email@hidden>)

  • Prev by Date: Special behavior when double-click NSTableView cell
  • Next by Date: Re: Special behavior when double-click NSTableView cell
  • Previous by thread: About the mysterious initWithBytes:length:encoding: NSString method
  • Next by thread: Re: About the mysterious initWithBytes:length:encoding: NSString method
  • Index(es):
    • Date
    • Thread