Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Developing U++ » External resources » opinions about FOX-TOOLKIT
Re: opinions about FOX-TOOLKIT [message #324 is a reply to message #304] Thu, 08 December 2005 11:32 Go to previous messageGo to previous message
fudadmin is currently offline  fudadmin
Messages: 1321
Registered: November 2005
Location: Kaunas, Lithuania
Ultimate Contributor
Administrator
from http://www.newplanetsoftware.com/jx/compare.php
Quote:

FOX appears to be a widget set rather than an application framework.

FOX messages are not the same as JX messages. FOX defines the messages in the target, which strongly couples each source to it, since each source has to know the appropriate message for each of its targets. This is not as serious as it seems, however, because FOX messages are designed to simulate Objective C's ability to redirect work to other objects. In this case, the source needs to know how to keep the target happy. Note that there are much cleaner ways to achieve this in C++. One method is to define a base class and then instantiate one of several derived classes at run-time to get the desired behavior.

JX, on the other hand, defines messages in the source, which promotes loose coupling since the source simply broadcasts, and each target does whatever is appropriate. This is solves a different problem from that of FOX messages. JX messages help implement Model-View-Controller designs.

In addition, FOX messages consist of an integer and a void*, so one needs to cast from a void* to get the associated state. This breaks the type safety provided by C++. JX messages are objects, so they can be downcast safely.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Static OOP (C++...) vs Dynamic OOP (CLOS...)
Next Topic: New GUI (toolkit?) with skinning - based on AGG
Goto Forum:
  


Current Time: Tue Jun 17 13:14:45 CEST 2025

Total time taken to generate the page: 0.04214 seconds