Guys, currently the code which configures the backend graphics context
looks like this:

  /* What backend context? */
  if ([defs stringForKey: @"GSContext"])
    context = [defs stringForKey: @"GSContext"];

  if ([context isEqual: @"xdps"])
    contextClass = NSClassFromString(@"NSDPSContext");
  else if ([context isEqual: @"art"])
    contextClass = NSClassFromString(@"ARTContext");
  else if ([context isEqual: @"winlib"])
    contextClass = NSClassFromString(@"WIN32Context");
   else if ([context isEqual: @"cairo"])
    contextClass = NSClassFromString(@"CairoContext");
 else
    contextClass = NSClassFromString(@"XGContext");

I think that this information should come from the backend bundles
plist if possible.  This way it's possible to create a backend without
needing to modify backend code directly.

Any thoughts?

Later, GC
-- 
Gregory Casamento
Open Logic Corporation, Principal Consultant
yahoo/skype: greg_casamento, aol: gjcasa
(240)274-9630 (Cell)
http://www.gnustep.org
http://heronsperch.blogspot.com

_______________________________________________
Gnustep-dev mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/gnustep-dev

Reply via email to