• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Enumerating outlets automatically?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Enumerating outlets automatically?
      • From: "Michael Ash" <email@hidden>
    • Re: Enumerating outlets automatically?
      • From: Andy Lee <email@hidden>
    • Re: Enumerating outlets automatically?
      • From: David Duncan <email@hidden>
  • Prev by Date: Re: NSTableView highlited text color
  • Next by Date: Re: Enumerating outlets automatically?
  • Previous by thread: Re: [Q] How to add nested items to NSOutlineView?
  • Next by thread: Re: Enumerating outlets automatically?
  • Index(es):
    • Date
    • Thread