• 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: Removing objects from the array controller but not from the persistent store (Newbie)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Removing objects from the array controller but not from the persistent store (Newbie)


  • Subject: Re: Removing objects from the array controller but not from the persistent store (Newbie)
  • From: "Marcus S. Zarra" <email@hidden>
  • Date: Thu, 27 Oct 2005 09:01:50 -0600

The easiest way is to simply apply a NSPredicate against the array. Depending on how you are accessing the NSArrayController you can set this in Interface Builder or in the code.

Marcus

On Oct 27, 2005, at 2:27 AM, Sebastian Morsch wrote:

Hi!

I have a little core data question:

I'm stuck with the task to implement a Filemaker-style behaviour where a database record can be 'omitted' (made invisible) from the list of shown records. My approach was to try to modify the arrangedObjects that are shown in the table in a NSTableView <bound to> NSArrayController <bound to> NSArrangedObjectContext setup, but it doesn't seem to work that way.

It's obvious how to permanently remove objects from the array controller AND the persistent store, but how can I just 'hide' them? Furthermore, I'd like to be able to show all the 'hidden' objects, i.e. the complement of the currently shown objects, but I have no idea how to achieve this either...

I know it's always a bit silly to think in some other design's ways when developing and I assume, that's where my problem lies. I'd appreciate any help or pointing-me-somewhere very much! Thanks.


Sebastian
_______________________________________________
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


References: 
 >Removing objects from the array controller but not from the persistent store (Newbie) (From: Sebastian Morsch <email@hidden>)

  • Prev by Date: Re: Getting a list of all the applications available on the harddrive
  • Next by Date: List of AppKit NSSound names
  • Previous by thread: Removing objects from the array controller but not from the persistent store (Newbie)
  • Next by thread: CGImageSourceCopyPropertiesAtIndex returns nil?
  • Index(es):
    • Date
    • Thread