NSTextView to replace NSTextList confused
NSTextView to replace NSTextList confused
- Subject: NSTextView to replace NSTextList confused
- From: Papa-Raboon <email@hidden>
- Date: Sun, 29 Jun 2008 01:28:42 +0100
Hi there guys.
I am a newbie to OOP and cocoa and as a personal project I have been
building a simple little app to allow me to quickly add people to the
Apple address book and at the moment it works well using NSTextFields
for every field, however I want to use an NSTextView to enter the text
for the 'note' field for the new contact as it would be a lot better
suited so I thought I could just lob an NSTextView at my window in
Interface builder, wire it up to my mainController class like I did
the text fields and change the reference in the header file to take
the text view into consideration.
So I did this and changed the header file for my mainController to
take the NSTextView into consideration by changing:
IBOutlet NSTextField * theNotes;
to:
IBOutlet NSTextView *theNotes;
I then built and ran the project and surprise surprise it didn't work.
In Xcode I get the following:
warning 'NSTextView' may not respond to '-stringValue'
(Messages without a matching method signature will be assumed to
return 'id' and accept '...' as arguments.).
Any ideas what I am doing wrong please anyone.
Cheers
Paul Randall
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden