I have an SCArrayOfOjects section that allows the user to manage tags.
The user can swipe right to delete or press Edit, they can also press the 'Add' button and the detail view is bought up. The detail view allows the user to enter the name for the new tag.
The issue is that there are certain characters that the user shouldn't be putting into the tag name and I don't want to allow duplicate tag names.
So what I'd like is to be notified when the user has finished editing a tag name or just before the tag is added to the Managed Object Context.
I did some research in these forums and found a post about validating objects (
www.sensiblecocoa.com/forum/sensible-tab...t=6&start=6#1672 ).
I was happy and so I added a tableViewModel:detailViewWillAppearForRowAtIndexPath:withDetailTableViewModel: handler, where I set the delagate of the new model to self and then added a tableViewModel:tableViewModelvalueIsValidForRowAtIndexPath: handler.
I expected the second hander to be called as the detail view is edited or dismissed but it seems to be called just before the detail view is presented so it won't serve my purposes.
What's the best way to do what I want to do?
STV handles everything so well I feel like I'm missing something simple!