Somewhat. The external code doesn't necessarily need to CREATE a
BookmarkManager, but on the other hand it doesn't need to be forced to go
through Browser in order to use it either.

Part of the issue is that "Browser" seems like a bad abstraction in the
first place. What is a "browser" anyway? What behavior does it actually
have? It's scope of responsibility is much too broad. If one is trying to
model the way something like Firefox works, it needs to be broken down a lot
more than that. "Browser" just seems like a God object on top of being a
Middle Man.



On Tue, Feb 17, 2009 at 5:54 PM, Alan Livie <[email protected]> wrote:

> I think what Brian means is rather than:
>
> var bookmarkManager = Browser.getBookmarkManager();
>
> can't your client code just use  (psudocode)
>
> bookmarkManager = createObject("bookmarkManager");
> bookmarkManager.doSomething();
>
> ie forget using Browser when you need to do all this BookmarkManager stuff
>
>  Sorry Brian if I'm misrepresenting you!
>
> Alan
>
> ------------------------------
> *From:* Henry <[email protected]>
> *To:* CFCDev <[email protected]>
> *Sent:* Tuesday, February 17, 2009 10:27:23 PM
> *Subject:* [CFCDEV] Re: OO question, how should I model this?
>
>
> On Feb 17, 2:22 pm, Brian Kotek <[email protected]> wrote:
> > First, if the client code needs to do all these things to bookmarks, why
> > can't it just interact with BookmarkManager directoy? Why does it have to
> go
> > through the Browser object?
>
> I guess u meant interact with BookmarkManager "directly"?
>
> Wouldn't that be Solution1?
>
> var bookmarkManager = Browser.getBookmarkManager();
>
> Then the View can call all public methods of BookmarkManager without
> going through Browser...
>
>
> Regards,
> Henry Ho
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CFCDev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/cfcdev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to