Using Core Data, is it possible to get to the TextBox containing the Core Data field?
- (BOOL)validateForUpdate:(NSError **)error {
// 1) Loop through all properties on Entity.
// 2) Finding the error
// 3) Create error:
*error = [NSError errorWithDomain:EntityMetadataErrorDomain
code:NSManagedObjectValidationError
userInfo:@{ NSLocalizedFailureReasonErrorKey : @"ValidationError).", NSValidationObjectErrorKey : self }];
// Options
// 1) Let the Context react on the error
// or 2) use NotificationCenter and hook up a method to respond to a notification.
I am looking for the right strategy?
Thanks