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: Roland Silver <email@hidden>
- Date: Fri, 6 May 2005 02:53:38 -0600
j o a r,
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??
--RS
On May 6, 2005, at 2:18 AM, j o a r wrote:
On 6 maj 2005, at 05.37, Roland Silver wrote:
Your solution, void plainCFunction(NSTextView *tv), leaves me with
ANOTHER problem of the same kind: if the caller of plainCFunction is
also a C-function, where does IT get the NSTextView object to give
plainCFunction as argument?
It can't conjure up the reference to the text view, so it needs to get
it as a parameter, just like Ondra showed you for the first function.
It's not magic... ;-)
j o a r
_______________________________________________
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