Enumerating outlets automatically?
Enumerating outlets automatically?
- Subject: Enumerating outlets automatically?
- From: Graham Cox <email@hidden>
- Date: Thu, 6 Nov 2008 16:13:52 +1100
Is there a way to enumerate the outlets of an object automatically?
In a certain type of controller object I'm finding I'm writing a lot
of code like this:
[myOutlet1 setEnabled:NO];
[myOutlet2 setEnabled:NO];
... etc for another several dozen outlets ...
If I could get a list of outlets (maybe as a dictionary with the ivar
name as key) I could probably find much easier ways to do stuff to
each one. I suspect the answer is no but I thought I'd ask anyway...
cheers, Graham
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden