• 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: Micha Fuhrmann <email@hidden>
  • Date: Fri, 27 Apr 2007 16:37:36 +0200

Hi Romain!

Thanks for responding!

It was indeed in the double declaration.

Do I feel silly: Yes

Thanks again


Micha


On 27 avr. 07, at 15:13, Romain wrote:

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

_______________________________________________

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: 
 >Re: Predicate in IB (From: Romain <email@hidden>)

  • Prev by Date: Re: Simple Interface Connection Question
  • Next by Date: [Core Data] Using In-memory persistent store as cache for remote data store
  • Previous by thread: Re: Predicate in IB
  • Next by thread: Lid opened notification?
  • Index(es):
    • Date
    • Thread