category - Runtime or compile time error for type check in Objective C -



category - Runtime or compile time error for type check in Objective C -

currently in our sdk allow user set key/value info on user record, info date, string or number. created protocol phone call attribute, extended (category) nsstring , nsdate , confirm protocol. in our method sets these attributes, inquire value argument confirm attribute protocol. help compile time check, wonder if necessary due dynamic nature of objective c (i’m java developer), improve run time check , homecoming nserror if value not of type nsstring nsdate or nsnumber ?

a decision depend on application behavior wrong data. it's unnecessary create error if it's wrong info @ release, should check values , converse, example, int nsnumber when user typed data, not after operations. it's choice, lead 1 or check if(error) etc..

objective-c category

Comments

Popular posts from this blog

formatting - SAS SQL Datepart function returning odd values -

c++ - Apple Mach-O Linker Error(Duplicate Symbols For Architecture armv7) -

php - Yii 2: Unable to find a class into the extension 'yii2-admin' -