Re: Passing selectors as Arguments (Was: - (void)sortUsingSelector:(SEL)comparator )
Re: Passing selectors as Arguments (Was: - (void)sortUsingSelector:(SEL)comparator )
- Subject: Re: Passing selectors as Arguments (Was: - (void)sortUsingSelector:(SEL)comparator )
- From: "John C. Randolph" <email@hidden>
- Date: Wed, 25 Jul 2001 14:58:35 -0700
On Wednesday, July 25, 2001, at 02:41 PM, Marcel Weiher wrote:
...and then there's the HOM-way, where you pass not just the selector
but an entire message expression, as in
[[someArray do] doSomething]
instead of
[someArray makeObjectsPerformSelector:@selector(doSomething)].
Marcel,
It would probably be a good idea to put an URL in your .sig so that
people who haven't heard of HOM before can get their hands on
MPWFoundation.
-jcr
For every complex problem there is an answer that is clear, simple, and
wrong. -- H L Mencken