Re: Storing data in a TreeIter (custom TreeModel)



Quoting muppet <scott asofyet org>:

for example, you can put in an iter a reference to an 
element of a list you keep in your model; the model's data structure 
actually owns the reference, and the iter holds only a throwaway copy 
of the reference.  you can't really make an iter own anything.  sorry.

Oh, ok.  That makes things ... interesting when the model's data structure
is really a SQL database.  But, no big deal, I can find somewhere to
actually store the data :o)
 
it may actually be a string, e.g., SvPOK is true.  $id+0 should work as
well, and may be a little clearer.

Yeah, I tested it and you're right, it is a string.  I know this is
totally unrelated to gtk2-perl, but does anyone know why that might be? 
It's stored in an integer field in the DB, so I guess it's just the
internals of the way DBI works.

Zach

-- 
And I say, Give me back my memory, or I'll rip you into three boy scouts
and a watchband!
                                           ---Aaron in "Remind Me Again"
------------------------------------------------------------------------
Zach Bean, zb forty2 com, web forty2 com          http://www.forty2.com

----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]