• 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: setFetchPredicate binding question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: setFetchPredicate binding question


  • Subject: Re: setFetchPredicate binding question
  • From: Scott Stevenson <email@hidden>
  • Date: Sun, 10 Dec 2006 04:08:11 -0800


On Dec 9, 2006, at 8:03 PM, Demitri Muna wrote:

Assume I have the selection as an instance called displayedVolume (it's done this way since the detail view is in its own nib to be reused). In my setSelectedObject: method, I have this:

NSPredicate *predicate = [NSPredicate predicateWithFormat:@"parent == nil AND volume.volumeName == %@",
[displayedVolume valueForKeyPath:@"volumeName"]];


[rootObjectsController setFetchPredicate:predicate];

I don't think you need the array controller at all if you're just binding the tree controller to the array controller's arrangedObjects. Unless I misread your description, I think you could skip that step and use the tree controller directly.


It would help to have a stack trace. A simplified project which highlights the example would be even better.

(Best email address ever.)

    - Scott
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >setFetchPredicate binding question (From: Demitri Muna <email@hidden>)

  • Prev by Date: Application runs multiple times
  • Next by Date: Re: Application runs multiple times
  • Previous by thread: setFetchPredicate binding question
  • Next by thread: Re: setFetchPredicate binding question
  • Index(es):
    • Date
    • Thread