I've got only a couple of more things to do on my app before I can really start using it properly (thanks to everyone here who has helped).
First off I need to be able to undo edits that are made to a text field. I have a rough idea of what to do and have put this method in which I think will listen for any edits:
I thought that calling this from the -init method would work, but it doesn't appear to.
I also need to get revert working. In my loadDataRepresentation: I have this code to check if revert was called:
This code appears to work, I just need to know how to tell the interface objects to update.
I have uploaded the project here, which will hopefully be the last time I have to do it as I have got pretty much everything working. Thanks again to everyone who was kind enough to help on these forums.
First off I need to be able to undo edits that are made to a text field. I have a rough idea of what to do and have put this method in which I think will listen for any edits:
Code:
- (void)startObservingDetails:(NSObjectController *)details
{
[details addObserver:self
forKeyPath:@"myBalance"
options:NSKeyValueObservingOptionOld
context:NULL];
}
I thought that calling this from the -init method would work, but it doesn't appear to.
I also need to get revert working. In my loadDataRepresentation: I have this code to check if revert was called:
Code:
if (currentDate != nil) {
NSLog(@"Revert Code needs to go here.");
}
This code appears to work, I just need to know how to tell the interface objects to update.
I have uploaded the project here, which will hopefully be the last time I have to do it as I have got pretty much everything working. Thanks again to everyone who was kind enough to help on these forums.