ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.

advertisement

AddThis Social Bookmark Button
Article:
  Higher-Order Messages in Cocoa
Subject:   Let HOM be your mantra
Date:   2005-06-23 01:14:50
From:   DanD.
Response to: Let HOM be your mantra

Just wondering, if superHeros is an array, why not just use


[superHeros makeObjectsPerformSelector:@(saveTheDay)];


or, alternately


{
[superHeros makeObjectsPerformSelector:@(defeatTheVillain)];
[superHeros makeObjectsPerformSelector:@(saveTheGirl)];
}


-Dan


1 to 1 of 1
  1. Let HOM be your mantra
    2005-06-23 01:17:49  DanD. [View]

    • Let HOM be your mantra
      2005-06-23 16:40:08  georgerix [View]

1 to 1 of 1