• 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
Re: Programmatically determine keys in an controller
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Programmatically determine keys in an controller


  • Subject: Re: Programmatically determine keys in an controller
  • From: Ondra Cada <email@hidden>
  • Date: Tue, 26 Apr 2005 23:50:22 +0200

Greg,

On 26.4.2005, at 22:44, Greg Hurrell wrote:

Is there any way to programmatically query an NSArrayController at runtime to get that listing of keys?

In general, nope. The array, for example, may contain dictionaries, each of which can have any set of keys, determined dynamically at runtime.


In some particular cases it may be possible (and I believe the future IB releases would be smarter doing that :) -- generally, if you know the class of the objects inside the array, you can use the runtime information to get the methods (and you can deduce which ones could be used for keys through their signatures).
---
Ondra Čada
OCSoftware: email@hidden http://www.ocs.cz
private email@hidden http://www.ocs.cz/oc


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Programmatically determine keys in an controller (From: Greg Hurrell <email@hidden>)

  • Prev by Date: Re: Subclassing Catch-22
  • Next by Date: Re: Subclassing Catch-22
  • Previous by thread: Programmatically determine keys in an controller
  • Next by thread: ADC Select Membership
  • Index(es):
    • Date
    • Thread