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


Author
Message
Nevron Support
Nevron Support
Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)
Group: Administrators
Posts: 3.1K, Visits: 4.2K
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


Virth Norbert
Virth Norbert
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
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
Nevron Support
Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)
Group: Administrators
Posts: 3.1K, Visits: 4.2K
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
Virth Norbert
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
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!

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search