By Virth Norbert - Wednesday, January 27, 2016
We have a Xamarin.Mac project, with many customized Cocoa NSViews. We found the Nevron framework interesting, so questions came up if we could use it: * From that much I've seen, it seems to me it's possible to use Nevron widgets inside an existing Xamarin.Mac app; also inside an existing NSWindow, also inside an existing NSView hierarchy. So an NNovWidgetHost does not have to be at top level in the view hierarch. Did I understand it well? * If so, is it possible to reuse our custom NSViews within Nevron, so I guess within NNovWidgetHost? Eg is there a way (a fast and easy way) to wrap our existing NSViews into NWidget or similar? Or rather do not try to do that?
Thanks!
|
By Nevron Support - Friday, January 29, 2016
Hi,
Thank you for your interest in NOV!
Regarding your questions:
* From that much I've seen, it seems to me it's possible to use Nevron widgets inside an existing Xamarin.Mac app; also inside an existing NSWindow, also inside an existing NSView hierarchy. So an NNovWidgetHost does not have to be at top level in the view hierarch. Did I understand it well? The NNovWidgetHost is a regular NSView, so you understand the concept correctly. It will act as any other NSView, so you can place it wherever you want in your UI hieracrhcy - It does not have to be root view in the window. This allows you to mix native NSViews and with NOV widgets in a single window as you see fit.
If so, is it possible to reuse our custom NSViews within Nevron, so I guess within NNovWidgetHost? Eg is there a way (a fast and easy way) to wrap our existing NSViews into NWidget or similar? Or rather do not try to do that? Unfortunately you cannot host native NSViews inside a NOV UI hierarchy, so there is no easy way to achieve this. You can however position these custom NSViews on top of the NNovWidgetHost and maybe use a NOV widget as a placeholder in the NOV UI hierachy.
|
By Virth Norbert - Saturday, January 30, 2016
You can however position these custom NSViews on top of the NNovWidgetHost and maybe use a NOV widget as a placeholder in the NOV UI hierachy. I don't understand this. Could you please explain this in details, and/or show me an example pseudo code or view hierarchy?
Thanks!
|
By Nevron Support - Thursday, February 4, 2016
Hi,
Suppose that you have a NStackPanel with say 3 buttons and one custom widget. You can launch a timer and inspect the position of the custom widget and position you custom NSView over it.
|
|