Sunday, June 23, 2013

Labels, Bindings and Cocoa

I am having the darnedest time writing this really basic program in Cocoa for the Mac. I'm just trying to get a label on the window to change when the value of a variable changes, and I cannot figure out how to get it to work. I can pass information to the program from the window, but I can't seem to pass information from the program back out.

I've been working on this for three weeks now. I'll sit and fiddle with it for hours until I reach the hair-pulling stage of frustration, and then I'll set it aside for a couple of days until I can look at the code without grinding my teeth. I just don't seem to be making any progress.

I'm sure it's something very basic that I'm overlooking, something that once I figure it out I will be slapping my forehead and wondering why that took so long, but it in the meantime, I'm just baffled.

But, this is how you learn, I guess.