Groups
Sign in
Groups
cocoa-dev-japan
Conversations
About
Send feedback
Help
デリゲートについて
18 views
Skip to first unread message
OverIsland
unread,
Nov 18, 2009, 1:20:16 PM
11/18/09
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to cocoa-dev-japan
デリゲートについての一般的な疑問です。
myClass の中で別のクラスのデリゲートメソッドを実装しました。
そのデリゲートメソッドの中で、 myClass内で共有されているインスタンス変数に
値を入れました。
ところが、myClass の中の別のメソッドからそのインスタンス変数にアクセス
してみたところ、値は入っていませんでした。
デリゲートメソッド内でインスタンス変数に値を入れる事はできないのでしょうか?
できないとしたら、デリゲートメソッドに引数として渡された値を、myClass の他の
メソッドと共有するには、どうしたら良いのでしょうか。
よろしくお願いします。
overisland
unread,
Nov 30, 2009, 8:27:07 PM
11/30/09
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to cocoa-dev-japan
その後、いろいろと調べてみたところ、デリゲートメソッドの呼ばれるタイミングがおかしく、値がきちんと入っていませんでした。
単純ミスでした、閲覧していただいた皆さん、すみませんでした。
Reply all
Reply to author
Forward
0 new messages