Re: [MBS] CocoaControlMBS: Howto NOT getting it linked with Windows builds?
Am 10.12.2013 um 08:59 schrieb Osswald Oliver mailbox...@buddhism.edu: I will now try to figure out how I can change my own app to make it work according to this example. Okay. I’m using Function GetView to make it a CustomNSSearchFieldMBS and I add a SearchMenu (NSMenuItemMBS) … maybe I’ll have to come back with more questions lateron. Well, I used NSButtonControlMBS here, but CocoaControlMBS should be similar. And of course make a feature request to have target properties on controls. Sincerely Christian -- Read our blog about news on our plugins: http://www.mbsplugins.de/ ___ Mbsplugins_monkeybreadsoftware.info mailing list mbsplugins@monkeybreadsoftware.info https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info
Re: [MBS] CocoaControlMBS: Howto NOT getting it linked with Windows builds?
On 10.12.2013, at 09:05, Christian Schmitz supp...@monkeybreadsoftware.de wrote Well, I used NSButtonControlMBS here, but CocoaControlMBS should be similar. And of course make a feature request to have target properties on controls. Great! Thanks again ___ Mbsplugins_monkeybreadsoftware.info mailing list mbsplugins@monkeybreadsoftware.info https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info
Re: [MBS] CocoaControlMBS: Howto NOT getting it linked with Windows builds?
That’s what the #if TargetXXX 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 mailbox...@buddhism.edu 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 mbsplugins@monkeybreadsoftware.info https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info ___ Mbsplugins_monkeybreadsoftware.info mailing list mbsplugins@monkeybreadsoftware.info https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info
Re: [MBS] CocoaControlMBS: Howto NOT getting it linked with Windows builds?
Hi, I put my solution here: http://www.macsw.de/plugin/NSButtonControl%20tests.zip by using container and only using it in code, I can avoid all those dlls. Sincerely Christian -- Read our blog about news on our plugins: http://www.mbsplugins.de/ ___ Mbsplugins_monkeybreadsoftware.info mailing list mbsplugins@monkeybreadsoftware.info https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info