• 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: limiting popupbutton list with a fetchSpec
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Re: limiting popupbutton list with a fetchSpec (From: Theodore Petrosky <email@hidden>)

  • Prev by Date: Re: limiting popupbutton list with a fetchSpec
  • Next by Date: R/R loop 101: how to trigger a subcomponent method before appendToResponse?
  • Previous by thread: Re: limiting popupbutton list with a fetchSpec
  • Next by thread: Re: limiting popupbutton list with a fetchSpec
  • Index(es):
    • Date
    • Thread