I passed the NSView from the class and I need to add another NSView at some point. How to do it?
Thanks in advance.
You can add a view to another view by sending an addSubview message, for example:
[MyView addSubview:MyOtherView];
Do not forget that you are responsible for displaying this presentation. Make sure you set its boundaries.
You can position a new view when creating an instance using the initWithFrame: method, which will create the view and place it inside the supervisor (i.e. the one with which you will add your opinion with the addSubview message already mentioned :).
PS: View programming guide - your friend ..; -)
Source: https://habr.com/ru/post/1770012/More articles:Comparable implementation in interface - java_dyld_start causes leaks in iphone applications - memory-managementНе удалось найти Spring NameSpaceHandler - Spring mvc-basic в равноденствии с использованием MANIFEST.MF, аналогично веб-консоли Spring образец DM webapp - javaEntity Framework uses model for different providers - .netSaving an H.264 RTP stream without re-encoding? - c ++jQuery template() для размещения URL-адреса в src= атрибуте изображения - jqueryCan I use Javascript to communicate with a server without XMLHttpRequest? - javascriptHow to enable block checkers whenever in a text field with significant focus - c #How can I run the ajax push website (activemq or cometd or something else)? - javascriptFind the values in the matrix and put them in the vector - vectorizationAll Articles