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

Re: NsPredicateEditor


  • Subject: Re: NsPredicateEditor
  • From: "Barry Wark" <email@hidden>
  • Date: Sun, 21 Sep 2008 21:31:02 -0700

I think you can also call setCanRemoveAllRows:NO to prevent the editor
from deleting the last (compound predicate) row.

-barry

On Sun, Sep 21, 2008 at 4:24 PM, Chris Idou <email@hidden> wrote:
>
> There's one or two demo apps on the apple site. I think it's called PredicateEditorSample. If the editor is totally empty on start you may have to initialise it with an empty NSCompoundPredicate so that you can at least see the add button.
>
> You can also search the archives for some tips.
>
> --- On Thu, 9/18/08, Sandro Noel <email@hidden> wrote:
>
>> From: Sandro Noel <email@hidden>
>> Subject: NsPredicateEditor
>> To: "cocoa-dev Users" <email@hidden>
>> Date: Thursday, September 18, 2008, 10:12 PM
>> Greetings.
>>
>> I would like to use NSPredicateEditor to build a filtering
>> string to
>> filter out items from an array.
>> but i cant seem to find a tutorial on the matter, and the
>> cocoa
>> documentation gets me lost, there is not enough information
>> in there
>> for me to really grasp what i should do to make it work, it
>> must be
>> one of those " it's so simple it's complicated
>> to understand"
>>
>> would someone be so kind to explain how i can achieve this.
>>
>> in the interface builder i have a NSPredicateEditor
>> I edited the templates that are in place in the designer,
>> I created an outlet for it in my controller and connected
>> them together.
>> but when I run the application the editor is empty.
>>
>> then once he predicate is running i want to compare every
>> tiems in my
>> array with it, and delete from the array the items that do
>> not match.
>>
>> thank you so much.
>>
>> Sandro.
>> _______________________________________________
>>
>> Cocoa-dev mailing list (email@hidden)
>>
>> Please 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)
>
> Please 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)

Please 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: 
 >NsPredicateEditor (From: Sandro Noel <email@hidden>)
 >Re: NsPredicateEditor (From: Chris Idou <email@hidden>)

  • Prev by Date: Re: How to load a window
  • Next by Date: Re: Listening for changes in a table
  • Previous by thread: Re: NsPredicateEditor
  • Next by thread: Document context
  • Index(es):
    • Date
    • Thread