[問題] 有關OC的語法
已爬文了...但不知道怎麼下關鍵字...所以如果op的話請見諒...
- (nullable NSDictionary<NSString *, id> *)attributesOfItemAtPath:
(NSString *)path error:(NSError **)error NS_AVAILABLE(10_5, 2_0);
這個宣告是在NSFieManager.h裡的
想請問大家一下NSDictionary<NSString *, id> *裡的這個
<NSString *, id>是什麼意思?
另外還有
@interface NSDictionary<KeyType, ObjectType> (NSFileAttributes)
這裡的<KeyType, ObjectType> 是不是也是一樣的意思呢?
謝謝
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 42.72.98.212
※ 文章網址: https://www.ptt.cc/bbs/MacDev/M.1466475557.A.D8E.html
※ 編輯: DicYang (42.72.98.212), 06/21/2016 10:22:42
推
06/21 10:29, , 1F
06/21 10:29, 1F
→
06/21 10:30, , 2F
06/21 10:30, 2F
→
06/21 10:31, , 3F
06/21 10:31, 3F
推
06/21 10:51, , 4F
06/21 10:51, 4F
→
06/21 10:51, , 5F
06/21 10:51, 5F
→
06/21 10:52, , 6F
06/21 10:52, 6F
推
06/21 20:45, , 7F
06/21 20:45, 7F