Change window title to the one in text box in Objective-C?

Posted by Nick Brooks on Stack Overflow See other posts from Stack Overflow or by Nick Brooks
Published on 2010-05-22T11:58:25Z Indexed on 2010/05/22 12:00 UTC
Read the original article Hit count: 244

Filed under:
|
|

I'm just getting started with Objective-C and I'm writing a simple application.

I made two outlets :

  • wnd - main window
  • display - the text box

Then I've tried using this code:

[wnd setTitle:[display value]];

Unfortuanately it didn't work ...

The debugger said :

2010-05-22 XX:XX:08.577 HelloWorld[2536:a0f] -[NSTextField value]: unrecognized selector sent to instance 0x102e032a0

Does anyone know how to get it to work?

© Stack Overflow or respective owner

Related posts about objective-c

Related posts about cocoa