Dne 13.4.2016 v 19:38 Sergio L. Pascual napsal(a):
> Hi,
> 
> While working on an implementation of LaunchServices, I've noticed that
> I need to define a bunch of static CFStringRef objects (like kUTTypeText, 
> kUTTypeRTF...).
> 
> Looking at corebase sources, those static CFStringRef seem to be
> somewhat special, as they're defined with the CONST_STRING_DECL macro,
> and initialized for runtime usage with GSRuntimeConstantInit.
> 
> Is there a way to define an static CFStringRef object outside the
> corebase project?
> 
> If it isn't, it would be reasonable to implement LaunchServices as part
> of the corebase project itself?
> 
> Thanks,
> Sergio.

Hi,

LaunchServices absolutely does not belong into CoreBase.

The simplest way to define such a constant is to use the @"xxx" syntax
and thus make use of toll-free bridging.

-- 
Luboš Doležel

_______________________________________________
Gnustep-dev mailing list
Gnustep-dev@gnu.org
https://lists.gnu.org/mailman/listinfo/gnustep-dev

Reply via email to