Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Nice! Got a link to the implementation, or more info?

The only reference I found to it is this thread: http://groups.google.com/group/objectivej/browse_thread/thre...



You're not going to like it :)

Rather than use typeof, CPObject has a runtime feature for asking about its class (https://github.com/280north/cappuccino/blob/master/Foundatio...).

Because we also do "toll-free bridging", you can ask if strings are CPStrings, numbers are CPNumbers, and arrays are CPArrays (though we don't toll free bridge null to CPNull, which we probably should).


https://github.com/280north/cappuccino/blob/master/Foundatio...

Nice. Pure class-object-reference equality up to the root. Won't work calling functions across windows, but who cares.


So, we actually have this feature where we "bridge" windows: you can basically tell a CPWindow to map to an actual browser window. And we implement it as a display only thing, so all of your actual code runs in the parent browser window and just manipulates the DOM elements in the child window. It doesn't completely work in IE I think, but I haven't tried in a while (it's kind of an experimental feature, but it's been in the release for a while).




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: