[webkit-dev] JS: Getter/Setter callbacks at Property level
Geoffrey Garen
ggaren at apple.com
Mon Jul 20 15:05:28 PDT 2009
> How about separate call backs at the class level? That would solve
> my problem with minimal code movement. Something like:
>
> JSClassSetPropertyGetterSetter
> (ctx,class,"red",myRedGetter,myRedSetter);
>
> Would that be more within the design?
Yes. That's what I had in mind when I mentioned "an API for adding C
getters and setters to a class individually."
Geoff
More information about the webkit-dev
mailing list