База ответов ИНТУИТ

Программирование на Objective-C

<<- Назад к вопросам

Что делает данный код?
if ( [ fm fileExistsAtPath:startPath ]) {  NSDictionary * fAtt = [ fm attributesOfItemAtPath:startPath error:nil ];    [ fm moveItemAtPath:startPath toPath:finalPath error:nil ];}

(Ответ считается верным, если отмечены все правильные варианты ответов.)

Варианты ответа
создает словарь со свойствами(Верный ответ)
перемещает файл(Верный ответ)
удаляет файл, но не перемещает
выводит свойства файла на экран
Похожие вопросы
Что делает данный код?
if ( [ fm fileExistsAtPath:startPath ]) {  NSDictionary * fAtt = [ fm attributesOfItemAtPath:startPath error:nil ];  for (NSString *key in fAtt) {    NSLog(@"Attribute %@ is %@", key, [ fAtt objectForKey:key]);    }      [ fm moveItemAtPath:startPath toPath:finalPath error:nil ];}
Что делает данный код?
if ( [ fm fileExistsAtPath:startPath ]) {  NSDictionary * fAtt = [ fm attributesOfItemAtPath:startPath error:nil ];  for (NSString *key in fAtt) {    NSLog(@"Attribute %@ is %@", key, [ fAtt objectForKey:key]);    }}
Что делает данный код?
NSMutableString * content = [ NSMutableString stringWithContentsOfURL:path encoding:NSUTF8StringEncoding error:nil ];       [ content appendFormat:littleString ];
Что делает данный код?
NSMutableString * content = [ NSMutableString stringWithContentsOfURL:path encoding:NSUTF8StringEncoding error:nil ];       NSLog(@"The text is %@", content);        [ content writeToURL:path2 atomically:YES ];
Что делает данный код?
NSMutableString * content = [ NSMutableString stringWithContentsOfURL:path encoding:NSUTF8StringEncoding error:nil ];        NSLog(@"The text is %@", content);[ content appendFormat:littleString ];        [ content writeToURL:path2 atomically:YES ];
Объект класса one вызывает метод description. Метод какого класса будет вызван, если one наследует от two, в котором тоже определен метод description.
Объект класса firstClass вызывает метод description. Метод какого класса будет вызван, если firstClass наследует от secondClass, в котором тоже определен метод description.
Расставьте типы возвращаемых значений getter'а и setter'а перемнной типа int.
-( ? ) count;-( ? ) setCount:(int) c;
Объекты каких классов создает код greenRectangle * myRectangle = [[greenRectangle alloc ] init]; при том, что он наследует от классов rectangle и shape?
Объекты каких классов создает код redSquare * mySquare = [[redSquare alloc ] init]; при том, что он наследует от классов square и shape?