[Dev] Dispatching "send"?
Donn Denman
donn at osafoundation.org
Wed Dec 15 16:12:55 PST 2004
Bryan,
The way I slice the problem is:
1) Finding the Item to operate upon
2) Either enabling the button, or performing the button action
John will have to help you with #1, but I can help with #2: Once you
have the item, it knows how to send itself by calling the shareSend()
method on it. You can also use the presence of that method to decide
if you should enable the button.
- Donn
On Dec 15, 2004, at 3:07 PM, Bryan Stearns wrote:
> John,
> I'm moving the email "Send" button from the detail view to the main
> toolbar... I'm trying to figure out how best to (a) dispatch the
> event, and
> (b) how to "ask" the detail view whether to enable the item.
>
> Initially, I figured the detail view should handle the event, but there
> isn't always a detail view around -- Donn had pointed out that you'd
> just
> added SendToBlockByName, but it asserts that the block exists. I could
> broadcast the event from the main view, but that wouldn't give me the
> ability to delegate enabling/disabling of the item.
>
> Can you suggest a better way to think about this?
>
> Thanks,
> ...Bryan
>
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> Open Source Applications Foundation "Dev" mailing list
> http://lists.osafoundation.org/mailman/listinfo/dev
More information about the Dev
mailing list