That’s what the #if TargetXXXXXXX options are for. Wrap your platform-specific
code in proper blocks:
#if TargetMacOS
//Do the Mac Stuff
#elseif TargetLinux
// Do the Linux stuff
#else
// Do the Windows stuff
#endif
On Dec 9, 2013, at 12:21 PM, Osswald Oliver <[email protected]> wrote:
> I’m using CocoaControlMBS on a ContainerControl of Name CocoaLinkSearchField.
>
> In Windows builds I would like to avoid to have it linked in as well.
> How would I use a CocoaControlMBS in this case?
>
> I’m stuck on this … (steh auf’m Schlauch)
>
> Oliver
>
>
> ==
> My CocoaLinkSearchField has a GetView, looking like this:
>
> Function GetView() As NSViewMBS
> searchfield=new NSLinkSearchField
> searchfield.maximumRecents=10
> Return searchfield
> End Function
>
>
> The containerControl holds a property ‘searchfield’ of type NSLinkSearchField.
> NSLinkSearchField is a class of type CustomNSSearchFieldMBS
>
>
>
> _______________________________________________
> Mbsplugins_monkeybreadsoftware.info mailing list
> [email protected]
> https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info
_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
[email protected]
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info