Re: Best way to run static class method from a string?
Re: Best way to run static class method from a string?
- Subject: Re: Best way to run static class method from a string?
- From: Matthew Ness <email@hidden>
- Date: Wed, 10 Dec 2014 08:40:57 +1100
On Wed, Dec 10, 2014, at 03:22 AM, James Cicenia wrote:
I want to run a method called availableKeys which just returns an NSArray of keypaths for that Entity.
I will be creating a picker of keys that are pre determined. I was going to use the UserInfo but it made EOModeler act a bit funny.
So I am doing something like:
public NSMutableDictionary availableKeys(){
if(availableKeys == null){
availableKeys.takeValueForKeyPath("Name", "name”);
availableKeys.takeValueForKeyPath("--- Dates ---", "-DATES-");
availableKeys.takeValueForKeyPath("Active Date", "activeDt");
}
return availableKeys;
}
So in my “Generic” pick list component I want to pass in the displayGroup, let them pick the columns of the report, and then process.
Hi James,
Can you go into EOModeler acting a bit funny in more detail? I use userInfo in models all the time for programmatic reasons/logic and haven't ever had a problem. I'd be interested in what makes it break for you.
regards,
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden