Sign in to follow this  
GlennGanz

RegisterObjectProperty

Recommended Posts

Hi

i'm writing an app in objc/c and using angel script. My Obj-C bridge is working well :-)

I try to use properties, but i cant find a method for using properties with function pointers. For a plain c application this would be great if there is also exists such a method on [color=#6F41A8][font=Menlo][size=2]asIScriptEngine.[/size][/font][/color]
[color=#6F41A8][font=Menlo][size=2]
[/size][/font][/color]
[color=#6F41A8][font=Menlo][size=2][color=#000000][font=arial, verdana, tahoma, sans-serif][size=3]or is there a workaround?[/size][/font][/color][/size][/font][/color]
[color=#6F41A8][font=Menlo][size=2][color=#000000][font=arial, verdana, tahoma, sans-serif][size=3]
[/size][/font][/color][/size][/font][/color]
[color=#6F41A8][font=Menlo][size=2][color=#000000][font=arial, verdana, tahoma, sans-serif][size=3]Thanks[/size][/font][/color][/size][/font][/color]
[color=#6F41A8][font=Menlo][size=2][color=#000000][font=arial, verdana, tahoma, sans-serif][size=3]Glenn[/size][/font][/color][/size][/font][/color]

Share this post


Link to post
Share on other sites
The RegisterObjectProperty is used to register an actual member of an object. But I assume you wanted something more like [url="http://www.angelcode.com/angelscript/sdk/docs/manual/doc_script_class_prop.html"]property accessors[/url], these are registered as normal [url="http://www.angelcode.com/angelscript/sdk/docs/manual/doc_reg_objmeth.html"]class methods[/url], except that they following a special naming convention and signature that the compiler understands.

Property accessors also work for global properties, and can even be used to emulate an array of elements.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this