• 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: posting message to text view from C-function
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: posting message to text view from C-function


  • Subject: Re: posting message to text view from C-function
  • From: Ondra Cada <email@hidden>
  • Date: Fri, 6 May 2005 03:38:34 +0200

Roland,

On 6.5.2005, at 3:34, Roland Silver wrote:

I have a window with a text view, and I would like to post a message to that text view from a C-function. I have an outlet IBOutlet NSTextView *textView defined for a class EmuController : NSObject, and from any method of EmuController I could post an NSString using e.g.
[textView insertText:nsString];
But is there some way I can post a string to the text view from a C- function?

Sure. The very same one. Just ensure you have an access to textView (like, using it for argument):


void plainCFunction(NSTextView *tv) {
  [tv insertText:@"whatever"];
}
---
Ondra Čada
OCSoftware:     email@hidden               http://www.ocs.cz
private         email@hidden             http://www.ocs.cz/oc


_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: posting message to text view from C-function
      • From: Roland Silver <email@hidden>
References: 
 >posting message to text view from C-function (From: Roland Silver <email@hidden>)

  • Prev by Date: [Moderator] Re: Handling open as a result of spotlight search
  • Next by Date: Re: programmaticaly modify .nib files
  • Previous by thread: posting message to text view from C-function
  • Next by thread: Re: posting message to text view from C-function
  • Index(es):
    • Date
    • Thread