重複の可能性:
C での矢印演算子 (->) の使用
ドット (“.”) 演算子と矢印 (“->”) 演算子の C と Objective-C での使用
私は 2008 年に最後に更新されたフリーウェア/オープンソース プログラムを見ている初心者ですが->
、次の表記法を認識できません。
- (id)copyWithZone:(NSZone *)zone
{
GFIPGeniusItem * newItem = [[[self class] allocWithZone:zone] init];
newItem->_stringValue = [_stringValue copy];
newItem->_imageURL = [_imageURL copy];
newItem->_webResourceURL = [_webResourceURL copy];
newItem->_speakableStringValue = [_speakableStringValue copy];
newItem->_soundURL = [_soundURL copy];
return newItem;
}
ある種のショートカットを許可していると思いますが、具体的に何をするのか知りたいです。