Quick Mac Question...?

Here’s a quickie for you mac guru’s out there…

In a OS-9 App, how can I signal my SDL application to change it’s state
from another application? I assume the answer everyone’s going to give
me is with Apple Events. But does anyone have a SDL-ish example with
Apple Events, or some sort of signaling demo between two applications
for Mac OS-9? It can’t be a simple two-state signal, I need to be able
to send variables and/or information through applications, one of which
needs to be SDL-based. I know in OS-X and posix boxes I’d just make a
unix socket or fifo and throw data back and forth through it. I know
there has to be a quick easy way to do this on OS-9, I just never got
into this concept 7-8 years ago when I did OS-9 coding. Anyone out
there lend a quick hand? =)

  • Andrew

Some applications support feature invokation and (and
inherently parameters / data transfer) via
AppleScript, but I never met a person who liked this
method. Your best bet might be to open a normal
socket, which should be easy for you since you already
know how to use a Unix socket. This would probably
also be the most portable way to do it (though, your
application sounds like it might be OS9 specific.)

— Andrew wrote:> Here’s a quickie for you mac guru’s out there…

In a OS-9 App, how can I signal my SDL application
to change it’s state
from another application? I assume the answer
everyone’s going to give
me is with Apple Events. But does anyone have a
SDL-ish example with
Apple Events, or some sort of signaling demo between
two applications
for Mac OS-9? It can’t be a simple two-state
signal, I need to be able
to send variables and/or information through
applications, one of which
needs to be SDL-based. I know in OS-X and posix
boxes I’d just make a
unix socket or fifo and throw data back and forth
through it. I know
there has to be a quick easy way to do this on OS-9,
I just never got
into this concept 7-8 years ago when I did OS-9
coding. Anyone out
there lend a quick hand? =)

  • Andrew

SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl


Do you Yahoo!?
Friends. Fun. Try the all-new Yahoo! Messenger.

Hahaha… for some odd reason I would have never thought of that, lol!
Yeah, you’re correct in your assumption that it’s OS-9 specific. I’ve been doing
too much unix-y programming and have my mindset on sending messages through
unix pipes/sockets and was kinda set on the idea to use Apple Events to
accomplish the same thing on OS-9. =P Ahh well, your idea will work perfectly.
=) Thanks much for bringing it to light! =)

  • Andrew

In a message dated 5/26/04 8:43:23 PM, smxrk at yahoo.com writes:> Some applications support feature invokation and (and

inherently parameters / data transfer) via
AppleScript, but I never met a person who liked this
method. Your best bet might be to open a normal
socket, which should be easy for you since you already
know how to use a Unix socket. This would probably
also be the most portable way to do it (though, your
application sounds like it might be OS9 specific.)