[Vala] Value as properties
- From: "airmind gmail com" <airmind gmail com>
- To: vala-list gnome org
- Subject: [Vala] Value as properties
- Date: Wed, 9 Mar 2011 23:36:55 -0400
Hi guys,
I'm new to this list and to Vala. I'm starting now to use Vala and I'm
loving it. I wonder if someone could help me out with this issue. I have an
object like this:
class MyObject : Object {
public Value? my_property { get; set; default = null; }
}
The problem is that my_property does not become a managed property. If I
change Value? to Value, it does become a managed property. I really need a
managed property to retrieve it at runtime by name. And I need it to be able
to hold null values since I'm using that in another part of the code.
Any idea how to let this property be managed and hold null values?
Regards,
*Alexandre Rosenfeld*
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]