Cocoa: Creating a Window with a Variable Number of Interface Elements
Posted
by Rui Pacheco
on Stack Overflow
See other posts from Stack Overflow
or by Rui Pacheco
Published on 2010-04-08T21:17:46Z
Indexed on
2010/04/10
18:23 UTC
Read the original article
Hit count: 339
Hi,
I've a window that will have an unknown amount of text fields, determined by the content of a remote server.
In high level terms, how should I go about this? Create a custom view or create an empty window with a backing NSWindowController and then add stuff to it when the window is opened?
I've seen the examples on the O'Reilly Cocoa book and those effectively create a custom NSView. Is this the right way to do it, 8 year later?
© Stack Overflow or respective owner