Text

About Objective-C Blocks vs Delegates

I’m having this mental discussion and I found this interesting response about blocks and delegates… So, maybe there is no versus between them.

“So, as a rule of thumb, a delegate protocol is correct when there’s a need for ongoing communication, the actions causing the communication are diffuse or the actions are emanating from a third source. Blocks are primarily associated with asynchronous actions and single-shot classes in particular.”


http://stackoverflow.com/a/9035610/220154

Tags: objective-c
Link
Quote
"Be nice. (The world is a small town.)"

— Austin Kleon

Link

(Source: cocoaheads)

Link

(Source: cocoaheads)

Photo
hi-mi-zu:

G, Koike Keiichi

hi-mi-zu:

G, Koike Keiichi

Quote
"Not chess, Mr. Spock. Poker. Do you know the game?"

James T. Kirk

Chat

Internal talk while yesterday's WOD.

  • Elephant: Geez, it's pouring...
  • Raider: Don't worry we won't melt.
  • Elephant: OMFG first lap of five and my lungs are burning.
  • Raider: Don't worry we'll rest while rowing.
  • Elephant: Rowing! I'm pacing the rowing today.
  • Raider: No, you row fast and with technique.
  • Elephant: is this over yet?
  • Raider: No, but visualize us at the end of this.
Chat

Internal talk while yesterday's WOD.

  • Elephant: Geez, it's pouring...
  • Raider: Don't worry we won't melt.
  • Elephant: OMFG first lap of five and my lungs are burning.
  • Raider: Don't worry we'll rest while rowing.
  • Elephant: Rowing! I'm pacing the rowing today.
  • Raider: No, you row fast and with technique.
  • Elephant: is this over yet?
  • Raider: No, but visualize us at the end of this.
Tags: crossfit
Quote
"The first draft of anything is shit."

Ernest Hemingway