01.02.2014 Views

Objective-C Fundamentals

Objective-C Fundamentals

Objective-C Fundamentals

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Beyond the basics<br />

255<br />

attributeName];<br />

break;<br />

case NSValidationRelationshipExceedsMaximumCountError:<br />

msg = [NSString stringWithFormat:<br />

@"The relationship '%@' has too many entries.",<br />

attributeName];<br />

break;<br />

case NSValidationRelationshipDeniedDeleteError:<br />

msg = [NSString stringWithFormat:<br />

@"To delete, the relationship '%@' must be empty.",<br />

attributeName];<br />

break;<br />

case NSValidationNumberTooLargeError:<br />

msg = [NSString stringWithFormat:<br />

@"The number of the attribute '%@' is too large.",<br />

attributeName];<br />

break;<br />

case NSValidationNumberTooSmallError:<br />

msg = [NSString stringWithFormat:<br />

@"The number of the attribute '%@' is too small.",<br />

attributeName];<br />

break;<br />

case NSValidationDateTooLateError:<br />

msg = [NSString stringWithFormat:<br />

@"The date of the attribute '%@' is too late.",<br />

attributeName];<br />

break;<br />

case NSValidationDateTooSoonError:<br />

msg = [NSString stringWithFormat:<br />

@"The date of the attribute '%@' is too soon.",<br />

attributeName];<br />

break;<br />

case NSValidationInvalidDateError:<br />

msg = [NSString stringWithFormat:<br />

@"The date of the attribute '%@' is invalid.",<br />

attributeName];<br />

break;<br />

case NSValidationStringTooLongError:<br />

msg = [NSString stringWithFormat:<br />

@"The text of the attribute '%@' is too long.",<br />

attributeName];<br />

break;<br />

case NSValidationStringTooShortError:<br />

msg = [NSString stringWithFormat:<br />

@"The text of the attribute '%@' is too short.",<br />

attributeName];<br />

break;<br />

case NSValidationStringPatternMatchingError:<br />

msg = [NSString stringWithFormat:<br />

@"The text of the attribute '%@' "<br />

"doesn't match the required pattern.",<br />

attributeName];<br />

break;<br />

default:<br />

msg = [NSString stringWithFormat:

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!