send message to multiple objects at once (objective-c)

后端 未结 4 393
忘掉有多难
忘掉有多难 2021-01-15 05:52

(or set multiple objects with one value) Is there a way to send multiple objects one message in one line.

So like

[someObject, otherObject reset];
<         


        
4条回答
  •  -上瘾入骨i
    2021-01-15 06:38

    Not really. That is one of the special features of Lua (NOT LUA) and Matlab.

    You could consider using NSNotificationCenter and send a message to multiple objects that way, but it's more work.

提交回复
热议问题