gnustep-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Suggestion for improving backend configuration...


From: Gregory Casamento
Subject: Suggestion for improving backend configuration...
Date: Wed, 27 Jun 2012 11:02:41 -0400

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]