NSString

I read this in “Cocoa Programming for Mac OS X 3rd edition”

I had to use

to solve a exercise in the book and it worked. As much as understand, it means that textField’s stringValue is assigned to the instance variable string.

But when I open the help documentation, (by option + double clicking on “NSTextField”) I could not find any such methods. I also checked NSString. Could not find anything there either. Can someone enlighten me on what the author meant to say? Or where I must look?

Xcode: Version 3.1.2
Mac OS 10.5

Hi,

NSString actually inherits from NSControl. If you are in the xcode documentation for NSString you will see at the top the other classes it inherits from

So if you look in the documentation for NSControl you will see the functions you require.

All the best

Terry

Thanks tellboy. I understood it now.

I think you meant:

Hi,

Yes, a senior moment indeed.

A rushed post while at work.

All the best

Terry