• 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
NSTextView to replace NSTextList confused
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: NSTextView to replace NSTextList confused
      • From: "Kyle Sluder" <email@hidden>
  • Prev by Date: Methods that return autoreleased objects?
  • Next by Date: Re: Methods that return autoreleased objects?
  • Previous by thread: RE: Methods that return autoreleased objects?
  • Next by thread: Re: NSTextView to replace NSTextList confused
  • Index(es):
    • Date
    • Thread