I'm making a document based application. I have toggle controls on the window for pinning and unpinning it and for collapsing and expanding the window.
When I go into the bindings tab for the toggle buttons, I see that I can either bind to the file's owner, to the application, or to the shared defaults controller.
Currently, I have it bound and working with the file's owner (which is the document class,) but this isn't really what I want. When I'm finished with my application, I want each window to be capable of having multiple documents open in it, so these settings belong to the window itself, not the documents open in it.
How can I get the control to bind with the window?
When I go into the bindings tab for the toggle buttons, I see that I can either bind to the file's owner, to the application, or to the shared defaults controller.
Currently, I have it bound and working with the file's owner (which is the document class,) but this isn't really what I want. When I'm finished with my application, I want each window to be capable of having multiple documents open in it, so these settings belong to the window itself, not the documents open in it.
How can I get the control to bind with the window?