richkilmer / hotcocoa

MacRuby HotCocoa UI library
166 stars 16 forks source link

Fix for "uninitialized constant Segment" error #15

Open jamis opened 13 years ago

jamis commented 13 years ago

If you create a segmented_control, and try to access one of the segments by index (e.g. control[0]), it currently raises an "uninitialized constant" error. This patch fixes the #[] method so it refers to the correct proxy class for the segments. Cheers!