Hi all,
I have a need to develop a poor-man's interface designer. The idea is this, the user will design their own worksheet templates that include buttons, text fields, combo boxes, and some other controls designed by me. We want to be able to use both Apple designed controls, and our own designed controls for certain purposes as well.
During the course of designing these templates, the user should be apple to pick from a small palette of items (each backed by a particular type of user-control). They would drop them onto a design surface, locate, and size them appropriately. Saving the template would involve writing out as XML the contents of the worksheet. At run time, the idea would be to load the worksheet XML from memory, build the worksheet (not in design mode) and have all the widgets "come alive" as data-backed controls.
I've done something similar in .NET, but I'd like to provide this type of functionality under OS/X. What I cannot figure out is how to interact with an NSButton (for instance) such that I can place a design surface over it that will allow me to interact with it by re-sizing and re-locating the widget. Does anyone know of resources in this area that could help me along?
I have a need to develop a poor-man's interface designer. The idea is this, the user will design their own worksheet templates that include buttons, text fields, combo boxes, and some other controls designed by me. We want to be able to use both Apple designed controls, and our own designed controls for certain purposes as well.
During the course of designing these templates, the user should be apple to pick from a small palette of items (each backed by a particular type of user-control). They would drop them onto a design surface, locate, and size them appropriately. Saving the template would involve writing out as XML the contents of the worksheet. At run time, the idea would be to load the worksheet XML from memory, build the worksheet (not in design mode) and have all the widgets "come alive" as data-backed controls.
I've done something similar in .NET, but I'd like to provide this type of functionality under OS/X. What I cannot figure out is how to interact with an NSButton (for instance) such that I can place a design surface over it that will allow me to interact with it by re-sizing and re-locating the widget. Does anyone know of resources in this area that could help me along?