NSTextView/NSTextField Question
NSTextView/NSTextField Question
- Subject: NSTextView/NSTextField Question
- From: Mike Brinkman <email@hidden>
- Date: Thu, 03 Jan 2002 14:01:52 -0500
I just made an item editor for a simple game I'm making. It consists of
several NSTextFields and an NSTableView for storing the info once I add an
item. For the text fields, I'm using [item setObject:[itemName stringValue]
forKey:@"itemName"]; to store the info into the table for the text fields.
One of the fields is an item description. I've got it stretched so it can
accommodate 3 lines of text, but the possibility exists that the description
could be longer than 3 lines. I'm limited in the size of the field due to my
application's layout, and I really don't want to change it.
Ideally, I'd like to use NSTextView for this field, but I can't find a
method for getting a string value from an NSTextView. Does such a method
exist? If not, does anybody know a way I can add a scroll bar into an
NSTextField? I've checked the foundation & app kit docs, but can't find
anything.
Thanks for any help you can give.
Mike Brinkman
--
The premiere source of Mike Brinkman related news on the internet!
http://www.mikebrinkman.com