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 < [email protected]> 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 <[email protected]> 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 >> [email protected] >> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel >> > _______________________________________________ > MacRuby-devel mailing list > [email protected] > http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel >
_______________________________________________ MacRuby-devel mailing list [email protected] http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
