[MacRuby-devel] Input field list

Matt Aimonetti mattaimonetti at gmail.com
Tue Dec 29 22:08:47 PST 2009


note that Obj-C's isKindOfClass is the same as Ruby's #is_a?

I would personally iterate on the subviews and use a switch case statement
to look at each item's class and act on them accordingly.

- Matt

On Wed, Dec 30, 2009 at 12:51 AM, Steven Canfield <
stevencanfield.macruby at gmail.com> wrote:

> Get the views subviews and iterate on them by class name. -isKindOfClass is
> the method. You could write filter / utility methods to make this easier.
>
> Steve Canfield
>
>
> On Dec 29, 2009, at 10:01 PM, Robert Rice <rice.audio at pobox.com> wrote:
>
>  This is an unrelated Cocoa newbe question but I'm sure someone could help
>> me.
>>
>> Is there a way to programmatically get a list of the input and control
>> field objects in a view rather than linking all of the fields separately in
>> Interface Builder?
>>
>> Thanks,
>> Bob Rice
>>
>> _______________________________________________
>> MacRuby-devel mailing list
>> MacRuby-devel at lists.macosforge.org
>> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
>>
> _______________________________________________
> MacRuby-devel mailing list
> MacRuby-devel at lists.macosforge.org
> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-devel/attachments/20091230/0d0ef9c4/attachment.html>


More information about the MacRuby-devel mailing list