• 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
Re: Dynamically added text views
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Dynamically added text views


  • Subject: Re: Dynamically added text views
  • From: "Alastair J.Houghton" <email@hidden>
  • Date: Fri, 29 Aug 2003 11:36:11 +0100

On Friday, August 29, 2003, at 09:48 am, April Gendill wrote:

Here is the problem. I can add as many tabs as I want, as far as I can
tell. BUT, I cannot access the data in the darn textviews. In other
words, Since I obviously cannot connect this stuff in IB, how do I get
the text from the scrollview item into a NSString so I can save it once
it is edited?

You need to pass a pointer to the text field object to whatever object it is that needs to retrieve the string (or, if it's the same object that creates the tab in the first place, just remember the pointer there). Once it has a pointer, it's easy to get the string with the -stringValue method.

Kind regards,

Alastair.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Dynamically added text views
      • From: April Gendill <email@hidden>
References: 
 >Dynamically added text views (From: April Gendill <email@hidden>)

  • Prev by Date: Re: More on text views
  • Next by Date: Drag an NSImageView
  • Previous by thread: Dynamically added text views
  • Next by thread: Re: Dynamically added text views
  • Index(es):
    • Date
    • Thread