I think this challenge is showing me that I am missing something fundamental about Cocoa/ObjC.
In MyDocument.m I have added another button to the alert sheet and that works correctly. Then I added an else if to alertEnded that is getting triggered correctly when I click my new button. I know that I need to set expectedRaise to 0, but I just don't know who to tell.
Following the delete option, I tried telling employeeController to setValue:0 forKey
"expectedRaise". I've tried forKeyName:. I've tried the setNilValueForKey: method. I think that I want to use a keypath here, but I just can't reason out where to start and who to tell.
I think part of it is that I don't quite understand the delete statement. Why are we passing remove nil and what is remove actually doing.
Thanks! These forums have been very helpful up until now in my progress through the book.
In MyDocument.m I have added another button to the alert sheet and that works correctly. Then I added an else if to alertEnded that is getting triggered correctly when I click my new button. I know that I need to set expectedRaise to 0, but I just don't know who to tell.
Following the delete option, I tried telling employeeController to setValue:0 forKey
I think part of it is that I don't quite understand the delete statement. Why are we passing remove nil and what is remove actually doing.
Thanks! These forums have been very helpful up until now in my progress through the book.