• 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: Nicko van Someren <email@hidden>
  • Date: Fri, 6 May 2005 11:04:48 +0100

On 6 May 2005, at 09:53, Roland Silver wrote:

The question becomes, where does the CALLER get a reference to the text view, so as to provide it as a parameter?

In other words, the caller, itself a C-function (call it cFunction2), will have to invoke plainCFunction this way:
... plainCFunction(textView); ...
so if it can't conjure up the reference to the text view, how does IT get it??

Where does any prpgram get any data? Your caller function can either get the data as a parameter, as joar suggested, or it can come from some static or global variable, or if you are willing to mix and match C and Objective-C you can call [FooClass alloc] from inside a regular C function as long as that function is in a .m file rather than a .c file.


	Nicko

_______________________________________________
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


References: 
 >posting message to text view from C-function (From: Roland Silver <email@hidden>)
 >Re: posting message to text view from C-function (From: Ondra Cada <email@hidden>)
 >Re: posting message to text view from C-function (From: Roland Silver <email@hidden>)
 >Re: posting message to text view from C-function (From: j o a r <email@hidden>)
 >Re: posting message to text view from C-function (From: Roland Silver <email@hidden>)

  • Prev by Date: Re: to NSTask or not to NSTask
  • Next by Date: Re: posting message to text view from C-function
  • Previous by thread: Re: posting message to text view from C-function
  • Next by thread: Re: posting message to text view from C-function
  • Index(es):
    • Date
    • Thread