• 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: Predicate in IB
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Predicate in IB


  • Subject: Re: Predicate in IB
  • From: Romain <email@hidden>
  • Date: Fri, 27 Apr 2007 15:13:28 +0200

Hi there,

I can't get the predicate working in IB. The predicate in the Class is working fine since I'm creating an filtered test array within the class, but in IB it doesn't do as expected. I've done a tiny project covering the issue, I would be grateful if someone could take a look.

[...]

Micha


This is because you are binding your NSArrayController to "predicate". Your bound class must be KVC compliant with "predicate": either with an initialized instance variable called "predicate", or with an accessor -(NSPredicate*)predicate returning the needed value.


Check your code: predicate is declared twice as global and local. Did you try to compile this ?
_______________________________________________


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


  • Follow-Ups:
    • Re: Predicate in IB
      • From: Micha Fuhrmann <email@hidden>
  • Prev by Date: Re: Appending string to NSTextView crashing app
  • Next by Date: KVO observeValueForKeyPath, not reflecting changes
  • Previous by thread: Predicate in IB
  • Next by thread: Re: Predicate in IB
  • Index(es):
    • Date
    • Thread