FROM : Ondra Cada
DATE : Tue Apr 26 23:50:22 2005
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_removed> http://www.ocs.cz
private <email_removed> http://www.ocs.cz/oc
DATE : Tue Apr 26 23:50:22 2005
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_removed> http://www.ocs.cz
private <email_removed> http://www.ocs.cz/oc
| Related mails | Author | Date |
|---|---|---|
| Greg Hurrell | Apr 26, 22:44 | |
| Ondra Cada | Apr 26, 23:50 |






Cocoa mail archive

