真的就是亂寫用的筆記

NSCollectionAddition

yllan++

yllan:

It let you:

  • ARRAY(a, b, c) instead of [NSArray arrayWithObjects: a, b, c, nil]
  • DICT(k1, v1, k2, v2) instead of [NSDictionary dictionaryWithObjects: v1, k1, v2, k2, nil]
  • SET(x, y, z) instead of [NSSet setWithObjects: x, y, z, nil]

(Thanks for Mike Ash, I steal these macros from his MACollectionUtilities.)

  1. zonble reblogged this from yllan
  2. yllan posted this