Alternate of Visual::DisconnectFromView
Hi, all
We use Visual::DisconnectFromView when we destroy a view. After upgraded, the DisconnectFromView become private, what's the alternate way to do so?
We use native c++ SDK of NoesisGUI.
Thanks.
We use Visual::DisconnectFromView when we destroy a view. After upgraded, the DisconnectFromView become private, what's the alternate way to do so?
We use native c++ SDK of NoesisGUI.
Thanks.
-
-
sfernandez
Site Admin
- Posts: 2027
- Joined:
Re: Alternate of Visual::DisconnectFromView
Why did you need to manually call DisconnectFromView? How were you using it?
The View already calls DisconnectFromView on the tree root when it gets destroyed, and all visuals in the tree are called to virtual function OnDisconnectFromView().
The View already calls DisconnectFromView on the tree root when it gets destroyed, and all visuals in the tree are called to virtual function OnDisconnectFromView().
Re: Alternate of Visual::DisconnectFromView
Then how to destroy a view? Or just there no reference the view will be destroyed?
Re: Alternate of Visual::DisconnectFromView
Yes, Views are automatically destroyed when ref counter reach zero, as the rest of classes in Noesis.
Who is online
Users browsing this forum: No registered users and 2 guests