• 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30

WWDC 10のビデオを見ているんですが、メモ。

Session 116 - Model-View-Controller for iPhone OS
https://deimos.apple.com/WebObjects/Core.woa/BrowsePrivately/adc.apple.com.4092349126.04109539109.4144345609?i=1812791157

Session116で出てきた、Object間でのやり取りの方法として3つ

  • Target - Action
  • Delegate
  • Notification

特に気になったのが後者の二つの違い。 下記Referenceによると、

  • Notification受信はいくつものObjectが受信することができる。対して、Delegateはdelegation objectのみ。また、Notificationは戻り値がない。
  • Notification受信側は、あらゆるmessageを受信することができるのに対し、Delegateは前もって宣言されたmethodsのみ。
  • Notification発信側は、受信者がいるかどうかは関知していない

http://developer.apple.com/iphone/library/documentation/Cocoa/Conceptual/Notifications/Articles/Notifications.html#//apple_ref/doc/uid/20000215-73929

Session116では、NotificationはBroadcast channelsと記述されていました。わかりやすい表現。

posted by Png satoko on Fri 25 Jun 2010 at 22:15

tech-tips系なので久しぶりにこちら更新です:

"option-command-double click" で doc windowが出るようになったようです。

どうやら3.2系では以前からこうみたいです。最近、やっとSnow Leopardにしたので、やっとこの仕様になったのかも。

BTW - do you know if there is a way to instantly open the item in the docs window? Option-double click used to do this, now it opens the quick help view

Ah, option-command-double click!

http://www.iphonedevsdk.com/forum/iphone-sdk-tools-utilities/27625-xcode-3-2-bug-documentation-not-available.html

posted by Png satoko on Tue 22 Jun 2010 at 03:40