Welcome to Soft32 Forums!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Sending message to Objective-C object from C file

 
   Soft32 Home -> Mac -> Programmer Help RSS
Next:  Object size info  
Author Message
Luca_a

External


Since: Jan 23, 2007
Posts: 19



(Msg. 1) Posted: Sat Jul 28, 2007 1:09 pm
Post subject: Sending message to Objective-C object from C file
Archived from groups: comp>sys>mac>programmer>help (more info?)

Hi everyone,

I am an experienced programmer but quite new in Mac OS programming. I am
developing a Cocoa application. I have an old C library files which I want
to reuse in this application. Part of that C library file plays an audio
file using another Audio library file. I want to replace functionality of
that Audio library file with QuickTime.

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.

Thanks in advance

Luca.
Back to top
Login to vote
Gregory Weston

External


Since: Mar 26, 2005
Posts: 3646



(Msg. 2) Posted: Sat Jul 28, 2007 1:09 pm
Post subject: Re: Sending message to Objective-C object from C file [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

In article <f8f4sk$dgm$1@news-01.bur.connect.com.au>,
"Luca_a" <nojunk.TakeThisOut@nojunk.com> wrote:

> Hi everyone,
>
> I am an experienced programmer but quite new in Mac OS programming. I am
> developing a Cocoa application. I have an old C library files which I want
> to reuse in this application. Part of that C library file plays an audio
> file using another Audio library file. I want to replace functionality of
> that Audio library file with QuickTime.
>
> 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.

I would say that in general if you find yourself needing to do that, the
best place to start is to rethink your design. But if you're sure you
need to, this page will probably get you on your way.

<http://developer.apple.com/documentation/Cocoa/Conceptual/ObjectiveC/Art
icles/chapter_4_section_6.html>
Back to top
Login to vote
Display posts from previous:   
Related Topics:
function (not in object code) to call Cocoa object method ? - How to call an object method from a function not inside the object code ? By example how to get the width of the string...

Objective C -> C - 1) Is there a good book for C programmers to be able to read Objective C code examples? I just want to know the basics ...

Why Objective-C? - I understand Objective-C is a heritage from the NextStep time (correct me if I'm wrong) But why should we use it now i...

Objective-C and C++ - I'm trying to write the, "Great American MMO" as a way to teach myself Objective-C. I was going to use an op...

objective-c categories, or something else? - this is the worst case of cut-and-paste code re-use i've ever committed, and i'm wondering if there's a way around it. ...

Objective-C++ and defs - I was thinking about how to implement operator overloading on Objective-C objects, and I got this: @interface objCClas...
       Soft32 Home -> Mac -> Programmer Help All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum

Categories:
 Windows
 Linux
  Mac
 PDA


[ Contact us | Terms of Service/Privacy Policy ]