Re: Programmatically determine keys in an controller
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