I would like to write an application using a class like NSBrower to
navigate in an hierarchy.
I didn't see equivalent class of nsbrower, even in source.
Any idea to implement it ? Perhaps with a group of NSTableView ?
thanks
...Marc
The CPTableView is still under development, it's already in the
repository if you want to have a look.
After this is finished i think the cappuccino team or someone else
will pickup the work on CPBrowser.
Regards,
Redmar
It's a somewhat confusing name that was probably chosen before the
*web* browser was invented.
-Tom
Long answer: No. It's not currently possible to place a Cappuccino
application on the *same page* as other content (i.e. not in an
iframe), since Cappuccino takes over the whole page and all events. It
may be possible, but will require a bit of work.
While it's not really how Cappuccino was intended to be used, if
anyone wants to tackle this, the place to start would be
CPDOMWindowBridge.j. In particular, take a look at _initWithDOMWindow:
_DOMBodyElement = document.getElementsByTagName("body")[0];
_DOMBodyElement.innerHTML = "";
Rather than using the actual body node (and deleting everything inside
it) you would probably want everything contained in a div. You would
also need to do a lot of work to get events to play nicely across the
capp and non-capp portions of the page. And any CSS you have on the
page will probably mess things up, so you'll either need to do some
sort of CSS reset on the root element, or change a bunch of things to
explicitly set style properties that are currently relying on defaults.
Caveat emptor...