Generating a Grid of NSTextField Objects From NSDictionary Items
I'm trying to create an vocabulary study application using Obj-C and the Cocoa frameworks. I have about two week's experience in both areas and have reached an edge of my current knowledge.
Here's where I'm stuck. When I press a checkbox, a corresponding plist is loaded into memory as an NSDictionary. I want to generate a "Label: Textfield" pair for each key:value pair, where the Label is the key. When the text typed into the Textfield matches the key's value, I want the Label's text to t开发者_如何学JAVAurn green.
So how would I generate this grid, and once generated, how would I make the text green upon correct input?
Thanks!
I want to generate a "Label: Textfield" pair for each key:value pair, where the Label is the key. When the text typed into the Textfield matches the key's value, I want the Label's text to turn green.
So how would I generate this grid, …
NSForm.
… and once generated, how would I make the text green upon correct input?
Set the relevant form cell's title to an attributed string with the key in green.
精彩评论