Profile Picture

[Xamarin.Mac] Is it possible to use native widgets inside an NNovWidgetHost?

Posted By Virth Norbert 3 Years Ago

[Xamarin.Mac] Is it possible to use native widgets inside an...

Author
Message
Virth Norbert
Question Posted 3 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)

Group: Forum Members
Last Active: 3 Years Ago
Posts: 2, Visits: 12
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!


Nevron Support
Posted 3 Years Ago
View Quick Profile
Supreme Being

Supreme Being (3,821 reputation)Supreme Being (3,821 reputation)Supreme Being (3,821 reputation)Supreme Being (3,821 reputation)Supreme Being (3,821 reputation)Supreme Being (3,821 reputation)Supreme Being (3,821 reputation)Supreme Being (3,821 reputation)Supreme Being (3,821 reputation)

Group: Forum Members
Last Active: 3 days ago @ 5:26 AM
Posts: 2,812, Visits: 2,856
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. 

Best Regards,
Nevron Support Team



Virth Norbert
Posted 3 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)

Group: Forum Members
Last Active: 3 Years Ago
Posts: 2, Visits: 12
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!

Nevron Support
Posted 3 Years Ago
View Quick Profile
Supreme Being

Supreme Being (3,821 reputation)Supreme Being (3,821 reputation)Supreme Being (3,821 reputation)Supreme Being (3,821 reputation)Supreme Being (3,821 reputation)Supreme Being (3,821 reputation)Supreme Being (3,821 reputation)Supreme Being (3,821 reputation)Supreme Being (3,821 reputation)

Group: Forum Members
Last Active: 3 days ago @ 5:26 AM
Posts: 2,812, Visits: 2,856
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. 

Best Regards,
Nevron Support Team





Similar Topics


Reading This Topic