RE: textView outlet problem
RE: textView outlet problem
- Subject: RE: textView outlet problem
- From: "Sven Hoffmann" <email@hidden>
- Date: Mon, 7 Mar 2005 17:02:31 +0200
- Thread-topic: textView outlet problem
Hi simone,
Let me guess what you did so far:
1.You created a new project in xcode.
2.You opened the mainMenu.nib file and created added a NSTextView to the
window in Interfacebuilder.
3.You subclassed NSObject with something like myController.m and added
an outlet "messagioInvito" to the class.
4.you instantiated the class to add an object to the nibfile and made
the connection(ctrl-drag) from the controller outlet to the textView.
5.You let interface builder create the myController.m and .h files and
added code to the xcode main function to put your string mssagio into
the textView: [messaggioInvito insertText:messaggio];
If that is what you did it should work. If not, try it like that.
The information you gave about what you did is, let's say, incomplete,
so maybe post a bit more of the source and we will be able to help you.
Sven
------------------------------------------------------------------------
------------
Sven Hoffmann
R&D Macintosh Software Develover
Email: email@hidden Tel. 03-6362211
Aladdin Knowledge Systems Ltd.
http://www.aladdin.com <http://www.aladdin.com/>
________________________________
From: cocoa-dev-bounces+sven.hoffmann=email@hidden
[mailto:cocoa-dev-bounces+sven.hoffmann=email@hidden] On
Behalf Of simone gabbriellini
Sent: 07 March, 2005 16:34
To: Cocoa Mailing List
Subject: textView outlet problem
Dear List,
I have a textView outlet (messaggioInvito) in which I would load a
NSString (messaggio)
My code is:
[messaggioInvito insertText:messaggio];
but it seems that the outlet doesn't listen, and in the GUI nothing
happens.
If I ask to printf the variable after this assignment, I have:
(null)
as an answer.
The textView is editable by the user, and messaggio do have a string
stored.
cannot understand why this happens.
any help welcome
thank you,
simone
**************************************************************************************************
The contents of this email and any attachments are confidential.
It is intended for the named recipient(s) only.
If you have received this email in error please notify the system manager or the
sender immediately and do not disclose the contents to anyone or make copies.
** eSafe scanned this email for viruses, vandals and malicious content **
**************************************************************************************************
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden