• 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 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
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>)

  • Prev by Date: Re: posting message to text view from C-function
  • Next by Date: Re: getting the key window from another application
  • Previous by thread: Re: posting message to text view from C-function
  • Next by thread: getting the key window from another application
  • Index(es):
    • Date
    • Thread