This example project explores the capabilities of NSTextField. The current scenario shows how to enable a label and its associated text field via a checkbox. Optional, a text can be specified that is shown when the text field is disabled.
Credits belong to Nicolas Bachschmidt for answering the initial question to this problem.
The screenshot shows the current implementation.
The following configuration is used for the project.
- MacOSX 10.7.4
- SDK 10.7.
- XCode 4.2. 64bit
- Cocoa Application
- Garbage collection