• 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/NSTextField Question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: NSTextView/NSTextField Question
      • From: Douglas Davidson <email@hidden>
    • Re: NSTextView/NSTextField Question
      • From: Andrew Mortensen <email@hidden>
    • Re: NSTextView/NSTextField Question
      • From: "Erik M. Buck" <email@hidden>
  • Prev by Date: Re: Unicode filename and FSPathMakeRef
  • Next by Date: Re: NSTextView/NSTextField Question
  • Previous by thread: Re: Using Scrolling in a subclass of NSView
  • Next by thread: Re: NSTextView/NSTextField Question
  • Index(es):
    • Date
    • Thread