• 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: IBoutlets out of scope in c functions?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: IBoutlets out of scope in c functions?


  • Subject: Re: IBoutlets out of scope in c functions?
  • From: Camillo Lugaresi <email@hidden>
  • Date: Fri, 10 Mar 2006 15:48:27 +0100

On 10/mar/06, at 14:03, Mike Lehmann wrote:

hi all,
I'm way noob at cocoa but have relatively thick skin, so feel free to
comment on anything you think I'm doing wrong aside from the question
at hand :)

I'm learning/using cocoa as a gui front end for a substantial c++
peer-to-peer SIP project.  The c++ engine needs to be able to send
events to the gui asynchonously, but obviously (to me, anyway) can't
send objective-c messages without being compiled as objective-c++.  So
I thought the way to handle this was to write c functions within the
objective-c code, and pass pointers to those functions to an event
handler class within the c++ code.  The c++ code fires, my code gets
executed, and everyone wins, in principle...

Can't you implement the event handler class in an Objective-C++ module and call ObjC methods directly?


Camillo
_______________________________________________
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: 
 >IBoutlets out of scope in c functions? (From: "Mike Lehmann" <email@hidden>)

  • Prev by Date: Re: IBoutlets out of scope in c functions?
  • Next by Date: Processing Unselect in NSOutlineView
  • Previous by thread: Re: IBoutlets out of scope in c functions?
  • Next by thread: Re: IBoutlets out of scope in c functions?
  • Index(es):
    • Date
    • Thread