• 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: 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
  • Follow-Ups:
    • Re: posting message to text view from C-function
      • From: Nicko van Someren <email@hidden>
    • Re: posting message to text view from C-function
      • From: j o a r <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>)

  • Prev by Date: Re: Function to write to one pixel?
  • Next by Date: Re: Converting old Project Builder projects?
  • 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