Re: limiting popupbutton list with a fetchSpec
Re: limiting popupbutton list with a fetchSpec
- Subject: Re: limiting popupbutton list with a fetchSpec
- From: David Avendasora <email@hidden>
- Date: Thu, 05 Feb 2015 09:13:43 -0500
Hey Ted,
Yikes! Don’t do that. Storing EOs in ivars is a recipe for hurt.
Local-instancing, deleting, etc. will either break or just be silently f’d up for you to find later. Trust me, I used to make this mistake all the time and then spend days trying to figure out why I keep getting EOs in different ECs, or EOs with no EC.
Past Dave is an Idiot, you know.
Create cover methods that simply qualify or sort the result set and target *those* with your rules.
Dave
On Feb 2, 2015, at 2:21 PM, Theodore Petrosky < email@hidden> wrote:
Ok this gets me in the ball park. In my person entity, I created in my Person entity:
NSArray<Book> pertinentBooks = null; NSArray<Book> sortedBooks = null;
—————————————————————————————
WebObjects - so easy that even Dave Avendasora can do it!™ ————————————————————————————— David Avendasora Senior Software Abuser Nekesto, Inc.
|
_______________________________________________
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