I just wrote this...

Pages: 12
I'm sure they would. I haven't tried any IBOutlet or IBAction arrays. Sooner or later I'm going to give them meaningful names =)
@Albatross: Those were pointers, which ARE arrays (just felt like pointing the finger). That being said you're right... arrays seem like they'de make more sense in this case.
@sargon94
"just felt like pointing the finger"
Please tell me that was unintended. XD
@sargon94: I think you missed my point. :/

My point was that those lines could probably be reduced into a single line, in which an array of pointers would be declared.

-Albatross
Looks like you can't have an array of IBOutlets =/ , however here's an interesting link

http://www.bobmccune.com/2011/01/31/using-ios-4s-iboutletcollection/
@Albatross: I actually did get your point, I just wanted to poke fun at it.... had an immature moment.
The issue there is how Apple's Interface Builder links with the code, it doesn't work with arrays.

I personally like Apple's use of [] for, as it's meant to be called, message-sending. It allows you to easily read the code out loud and be able to understand what is being done without really thinking about it. if ([command isEqualToString: @"reconnect"]) is a good example, and I've been writing my classes to match that naming convention.

That aside, the language IS verbose. Rather than being able to simply do myMethod, you have to do [self myMethod]. In addition to this, the "Objective" and "C" parts of the language don't mesh very well. Structs have strange properties when used within an Obj-C class, and you can't really make an array of Obj-C objects. You have to make an array of ids, which can be assigned to a pointer to an Obj-C object.

There is no real type-safety, you could cast some object to an id and then cast that to some other unrelated class and still not get any compilation errors, just warnings.


I'm a bit late to the party, but I thought I'd just give my input.
Topic archived. No new replies allowed.
Pages: 12