• 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: Sending message to Objective-C object from C file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Sending message to Objective-C object from C file


  • Subject: Re: Sending message to Objective-C object from C file
  • From: ∞ <email@hidden>
  • Date: Sat, 28 Jul 2007 12:13:04 +0200


Il giorno 28/lug/07, alle ore 11:59, seyed mehdi nazemi ha scritto:

So I have created a Controller Objective-C object that includes QTMovieViewer and can use that to play an audio file. Now my question is how to send message to that Objective-C object from a C file in my old library.

You could change the extension to .m, #import the relevant headers and use Objective-C syntax. You should not incur into problems with this since Objective-C syntax is a strict superset of C's and it compiles to the same ABI for the non-Objective-C parts, so it won't break or mangle your existing code.


 - ∞_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Sending message to Objective-C object from C file
      • From: "Jeff Bland" <email@hidden>
References: 
 >Sending message to Objective-C object from C file (From: "seyed mehdi nazemi" <email@hidden>)

  • Prev by Date: Sending message to Objective-C object from C file
  • Next by Date: Gradient NSOutlineView row - Text color of it's NSTextFieldCell
  • Previous by thread: Sending message to Objective-C object from C file
  • Next by thread: Re: Sending message to Objective-C object from C file
  • Index(es):
    • Date
    • Thread