Newbie here =).
Need help. I create, for example, NSButton in my class. How to show it on form?
What i need is to write a puzzle-game app (box of buttons without one, so u move them around to build image). I can make lots_of_buttons in interface builder, but what if i wish to dynamicly make more of them while app runs?
In delphi, for example, it looks like this:
Where "panel1" is some panel placed on a form.
Help, please. Reading docs and googling didn't help - seems like it's too obvius to talk about it.
Need help. I create, for example, NSButton in my class. How to show it on form?
What i need is to write a puzzle-game app (box of buttons without one, so u move them around to build image). I can make lots_of_buttons in interface builder, but what if i wish to dynamicly make more of them while app runs?
In delphi, for example, it looks like this:
Code:
button=TButton.Create(panel1);
button.Parent=panel1;
Help, please. Reading docs and googling didn't help - seems like it's too obvius to talk about it.