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: Ondra Cada <email@hidden>
- Date: Fri, 6 May 2005 13:48:08 +0200
Roland,
On 6.5.2005, at 5: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's a question to you, since you know how and when it gets called.
It can get it through argument, too (itself being called from an
object code which has access to the properties). Or you may want to
publish it through a global variable (or, more cleanly, through a
class message) for some specific object. Or whatever: as said,
depends on your code.
---
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