Is it possible in Cocoa to add component on view programatically? The UI is created using the Interface Builder from Xcode. I just want to add some NSButtons but its quantity and positions will be known at the runtime and user input.
Does anyone knows is it possible and how it could be done and how positioning these ynamic components?
Of course it is possible.
Adding a subview:
etc.
Or to be more precise for a button it would be something like this:
Ah, sorry just noticed it was OSX, not iOS, but the basics are the same. Have a look at the NSButton class instead.
should get you started.