I am stuck on this error.
2008-05-12 20:58:58.257 TimerTest[65919:10b] An uncaught exception was
raised
2008-05-12 20:58:58.259 TimerTest[65919:10b] Controller cannot be nil
2008-05-12 20:58:58.260 TimerTest[65919:10b] *** Terminating app due
to uncaught exception 'NSInvalidArgumentException', reason:
'Controller cannot be nil'
My code is to make a countdown timer, displayed in 3 NSTextFields for
the hours, minutes and seconds.
The code works fine, as you see in the log output below.
However, when I bind one of the NSTextFields to any of the properties
hours, minutes, seconds, or their string equivalents through an
instance of my class, I get the runtime error "controller cannot be
nil" and the nib does not load. It loads fine if I uncheck that binding.
IB: three text fields, no controllers, one NSObject (deadline) with
class of Deadline to instantiate the class. Text fields attempted to
bind their value to properties of this instance, e.g., deadline.hours
or deadline.minutes.