Re: posting message to text view from C-function
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