Re: Carbon, threads, and windows...



In article <4738c1af$0$2237$426a74cc@xxxxxxxxxxxx>,
Adrien Reboisson <adrien-reboisson-at-astase-dot-com@xxxxxxxx> wrote:

Gregory Weston a écrit :

he wanted to avoid users calling OS drawing APIs in
applications which use it. In a nutshell, no GetMessage/PeekMessage...
or Carbon's RunApplicationEventLoop/ReceiveNextEvent/... outside of the
library's classes.

I'm confused. Does this library exist for the Mac with the same
behaviors? If you're not planning on actually using that library, I'm
not sure why its eccentricities would inform the design of your port.

I don't use this library, I just have to port it to Carbon. The library
does already compile under MacOS X, but is dependant of the X11
subsystem. The author want something more "native" and I've been
assigned to do the port. Nothing more.

BTW, I don't find the concept nor the implementation "eccentric". When a
physicist wants to implement some image processing algorithm, he
certainly does not want to write any OS dependant code (or has event the
knowledgde to do that). He just want to include some .HPP, to work on
some objects instances, and to connect them to a display to show the
algorithm result. This is not the way I usually design my applications,
but encapsulating all the drawing code outside the user files is a
must-have for this library.

We may be narrowing in on something here. Is the goal to recreate an
app, a library, or specifically to do both of them?

I thought at first you were creating an application ("I'm porting a
Win32 application to the Mac...") and in that case you wouldn't
necessarily care about the unrelated needs of a library that happens to
have been used in the implementation of the app on a different platform.
But if you're trying to create a library, we're into a somewhat
different ballpark.

Greg
.



Relevant Pages

  • Re: Carbon, threads, and windows...
    ... I just have to port it to Carbon. ... physicist wants to implement some image processing algorithm, ... certainly does not want to write any OS dependant code (or has event the ... This is not the way I usually design my applications, ...
    (comp.sys.mac.programmer.help)
  • Re: Communicate with vb.net application
    ... In that scenario each app grabs and hold the port as long as it needs it. ... > I need to communicate between two applications. ...
    (microsoft.public.fox.programmer.exchange)
  • Re: Is there a way to setup w2k3 to monitor NIC traffic?
    ... I use an app called ActivePorts on my machine to see the applications ... that have active TCP connections, on what port and to what machine. ...
    (microsoft.public.windowsxp.setup_deployment)
  • RE: More on Shatter
    ... Latency for the WM_TIMER message is irrelevant. ... load, and you code an app to fire WM_TIMER's at every 50ms, your WM_TIMERS ... > try to do real-time things (as I wager most applications ...
    (Vuln-Dev)
  • Re: Safely SHUTDOWN Device from Application
    ... If you have only specific applications then you could designate one to be ... How you handle suspend is very much hardware dependent, ... It's then up to the app to take ... By 'Safe Shutdown', I meant that any application writing/reading to/ ...
    (microsoft.public.windowsce.platbuilder)