Re: Simple way to list keys & values of a GHashTable object?

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

 



I'll check 'em out.
Thanks!
Ric.

On Nov 11, 2010, at 5:25 AM, Emmanuele Bassi wrote:

> On Wed, 2010-11-10 at 13:46 -0800, Frederick C. Lee wrote:
>> Greetings:
>>   I'm a GTK neophyte working with Objective-C/C.
>> 
>> I came across a GHashTable object that I want to decipher.
>> 
>> I would like to do a printf() of the keys and/or values of this particular GHashTable object.
>> 
>> This particular GHashTable is very small and I'm not interested in efficiency; just simplicity.
>> 
>> In ObjC, one can merely do a [NSDictionary allKeys] & [NSDictionary allValues] and be done with it.
>> 
>> What is the simplest way to do this?
> 
> GHashTableIter is one way, as others have said; GHashTable also has the
> get_keys() and get_values() methods, each doing exactly what it says on
> the tin.
> 
> ciao,
> Emmanuele.
> 
> -- 
> W: http://www.emmanuelebassi.name
> B: http://blogs.gnome.org/ebassi
> 
> _______________________________________________
> gtk-list mailing list
> gtk-list@xxxxxxxxx
> http://mail.gnome.org/mailman/listinfo/gtk-list

_______________________________________________
gtk-list mailing list
gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list


[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux