FROM : Corbin Dunn
DATE : Wed Apr 23 20:12:18 2008
On Apr 23, 2008, at 9:21 AM, Ewan Delanoy wrote:
>>> I'm not quite sure what you mean by "target" here
>> The "target" is the object that your selector message will be sent
>> to.
>> How will your TableView know which object responds to the selector
>> you
>> give it? It's not magic...
>> HTH
>
> It did help indeed, and even solved my problem! (it now works with a
> single click by the way, just as in Mail). I was confused because
> although I already knew how an action in an object could be the target
> of a button or a single cell in a table view, I hadn't yet understood
> that it could be the target of a table view "as a whole", with the
> action triggered by any of the cells in it. Many thanks!
Based on your description of the problem, you probably want to update
your lower pane via:
- (void)tableViewSelectionDidChange:(NSNotification *)notification;
.corbin
DATE : Wed Apr 23 20:12:18 2008
On Apr 23, 2008, at 9:21 AM, Ewan Delanoy wrote:
>>> I'm not quite sure what you mean by "target" here
>> The "target" is the object that your selector message will be sent
>> to.
>> How will your TableView know which object responds to the selector
>> you
>> give it? It's not magic...
>> HTH
>
> It did help indeed, and even solved my problem! (it now works with a
> single click by the way, just as in Mail). I was confused because
> although I already knew how an action in an object could be the target
> of a button or a single cell in a table view, I hadn't yet understood
> that it could be the target of a table view "as a whole", with the
> action triggered by any of the cells in it. Many thanks!
Based on your description of the problem, you probably want to update
your lower pane via:
- (void)tableViewSelectionDidChange:(NSNotification *)notification;
.corbin
| Related mails | Author | Date |
|---|---|---|
| Ewan Delanoy | Apr 23, 18:21 | |
| Corbin Dunn | Apr 23, 20:12 | |
| Ewan Delanoy | Apr 23, 21:05 | |
| Nate Weaver | Apr 23, 21:44 | |
| Corbin Dunn | Apr 23, 23:51 |






Cocoa mail archive

