I am currently reading Cocoa Programming for Mac OS X (3rd Ed.) and as a little side project, I am trying to convert the apps I create following through this book into iPhone apps if possible. I just started and I am trying to convert over the Generator app. A problem I am having is with the following code:
The iPhone SDK has a problem with:
and I get the error:
warning 'UILabel' may not respond to '-setObjectValue:'
I'm having an issue determining what to run here to display the date/time into the label.
Code:
- (void)awakeFromNib
{
NSCalendarDate *now;
now = [NSCalendarDate calendarDate];
[textField setObjectValue:now];
}
The iPhone SDK has a problem with:
Code:
[textField setObjectValue:now];
and I get the error:
warning 'UILabel' may not respond to '-setObjectValue:'
I'm having an issue determining what to run here to display the date/time into the label.