Re: NSPredicateEditor losing nextKeyView

2010-02-23 Thread Ashley Clark
On Feb 23, 2010, at 2:31 PM, Trygve Inda wrote: >> On Feb 21, 2010, at 9:50 PM, Trygve Inda wrote: >> >>> In my sheet, I have a "name" NSTextField and an NSPredicateEditor. >>> Initially, the tab key works to jump between my name field and the first >>> match field in the predicate editor. >>> >

Re: NSPredicateEditor losing nextKeyView

2010-02-23 Thread Trygve Inda
> On Feb 21, 2010, at 9:50 PM, Trygve Inda wrote: > >> In my sheet, I have a "name" NSTextField and an NSPredicateEditor. >> Initially, the tab key works to jump between my name field and the first >> match field in the predicate editor. >> >> However, after changing any of the menus in the line

Re: NSPredicateEditor losing nextKeyView

2010-02-21 Thread Ashley Clark
On Feb 21, 2010, at 9:50 PM, Trygve Inda wrote: > In my sheet, I have a "name" NSTextField and an NSPredicateEditor. > Initially, the tab key works to jump between my name field and the first > match field in the predicate editor. > > However, after changing any of the menus in the line of my pre

Re: NSPredicateEditor Continuous updating failes

2010-01-21 Thread Jim Turner
On Thu, Jan 21, 2010 at 6:00 AM, Florian Soenens wrote: > Hi LIst, > > i set up an NSPredicateEditor and got it all working fine except that it > only executes when i hit enter or tab out of the NSTextField. > Is there a way to let it execute everytime something changes in the > textfield? > > I t

Re: NSPredicateEditor

2009-01-15 Thread Peter Ammon
On Jan 15, 2009, at 5:14 AM, Chris Idou wrote: Is it just me or does the "enabled" checkbox in IB for NSPredicateEditor, as well as the enabled bindings do nothing? enabled indeed does nothing yet. If you want to prevent the user from changing an NSPredicateEditor, you can use setEdit

Re: NSPredicateEditor

2009-01-15 Thread Chris Idou
Nib on the predicateEditor, and it didn't do anything. I am using 10.5.6. From: Volker in Lists To: Chris Idou Cc: cocoa-dev@lists.apple.com Sent: Friday, 16 January, 2009 12:42:10 AM Subject: Re: NSPredicateEditor Hi, works for me on 10.5.5 just as well as via c

Re: NSPredicateEditor

2009-01-15 Thread Volker in Lists
Hi, works for me on 10.5.5 just as well as via code and calling the appropriate methods. At least that was my experience from before christmas. Want me to retry on 10.5.6? Volker Am 15.01.2009 um 14:14 schrieb Chris Idou: Is it just me or does the "enabled" checkbox in IB for NSPredi

Re: NSPredicateEditor and aggregate operations

2008-12-16 Thread Tom
I've got around it by implementing a kind of "man in the middle" subclass of NSPredicateEditorRowTemplate. I set the class of the row template to my subclass in IB and it automatically adds the "ANY" modifier to whatever is already configured. It removes the "ANY" modifier from the predicat

Re: NSPredicateEditor and date comparisons

2008-12-07 Thread Chris Idou
got a suspicion > that it will then leave the time component alone. When you > got a result of 13:41:40, might that have been the time you > ran the program? > > > > > > --- On Sun, 7/12/08, Josh Abernathy > <[EMAIL PROTECTED]> wrote: > > > >

Re: NSPredicateEditor and date comparisons

2008-12-07 Thread jmunson
t; wrote: From: Josh Abernathy <[EMAIL PROTECTED]> Subject: Re: NSPredicateEditor and date comparisons To: [EMAIL PROTECTED] Cc: "Cocoa-Dev List" Received: Sunday, 7 December, 2008, 5:00 PM Ah, yes, that would be the more accurate way to explain it. I have an NSDatePicker in my NSPredic

Re: NSPredicateEditor and date comparisons

2008-12-07 Thread Chris Idou
u ran the program? --- On Sun, 7/12/08, Josh Abernathy <[EMAIL PROTECTED]> wrote: > From: Josh Abernathy <[EMAIL PROTECTED]> > Subject: Re: NSPredicateEditor and date comparisons > To: [EMAIL PROTECTED] > Cc: "Cocoa-Dev List" > Received: Sunday, 7 December,

Re: NSPredicateEditor and date comparisons

2008-12-07 Thread Josh Abernathy
Ah, yes, that would be the more accurate way to explain it. I have an NSDatePicker in my NSPredicateEditor and no funny business is going on with conversions. It's just the simple default, setup-in-IB usage. So I guess the question is better put: is there any guarantee about the time of an

Re: NSPredicateEditor and date comparisons

2008-12-07 Thread Chris Idou
I'm a bit confused by your post. NSPredicateEditor doesn't compare any dates, it just creates NSPredicates. Maybe you're saying that if you have a NSDatePicker in your NSPredicateEditor, that it creates a predicate with a date set to 13:41:40. If that's the case, then it probably has more to do

Re: NSPredicateEditor not updating scrollbar

2008-11-03 Thread Graham Cox
On 4 Nov 2008, at 3:38 pm, Guy Umbright wrote: I have an NSPredicateEditor in an NSTabView. But when I add enough predicate items to the point where the vertical scrollbar should appear, it does not. My question is am I wrong to expect it to handle the scrollbar or am I missing somethin

Re: NSPredicateEditor

2008-11-03 Thread Peter Ammon
On Nov 2, 2008, at 9:09 PM, Chris Idou wrote: Has anyone been able to add menu items to the first popup while it is running? Or are you pretty much stuck with whatever the initial values were? I've tried various things and haven't been able to do it. If you want to change the items av

Re: NSPredicateEditor error

2008-10-28 Thread Chris Idou
Yes, I thought I had an NSButton, but it turned out I'd wrongly put in a NSPopupButton. --- On Tue, 10/28/08, Peter Ammon <[EMAIL PROTECTED]> wrote: > From: Peter Ammon <[EMAIL PROTECTED]> > Subject: Re: NSPredicateEditor error > To: [EMAIL PROTECTED] > Cc: coc

Re: NSPredicateEditor error

2008-10-28 Thread Peter Ammon
On Oct 27, 2008, at 10:07 PM, Chris Idou wrote: I'm getting the following error: In , different number of items (3) than predicate template views (4) for template 0x12487e0: [move:] [] NSStringAttributeType> From experimenting, the only difference between the NSPredicateEditorRowTemplat

Re: NSPredicateEditor - row size

2008-10-27 Thread Peter Ammon
On Oct 27, 2008, at 11:28 AM, Peter Ammon wrote: On Oct 25, 2008, at 4:07 AM, Chris Idou wrote: Has anyone found a way to make a row in the NSPredicateEditor to have components taller than the standard height or a more complicated arrangement of components, or are you pretty much limi

Re: NSPredicateEditor - row size

2008-10-27 Thread Peter Ammon
On Oct 25, 2008, at 4:07 AM, Chris Idou wrote: Has anyone found a way to make a row in the NSPredicateEditor to have components taller than the standard height or a more complicated arrangement of components, or are you pretty much limited to one row of buttons, and text fields and simi

Re: NsPredicateEditor

2008-09-21 Thread Barry Wark
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 PROTECTED]> wrote: > > There's one or two demo apps on the apple site. I think it's called > PredicateEditorSample. I

Re: NsPredicateEditor

2008-09-21 Thread Sandro Noel
Thank you, that did it!!! Sandro. On 21-Sep-08, at 7:24 PM, Chris Idou 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 c

Re: NsPredicateEditor

2008-09-21 Thread Chris Idou
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. --- O

Re: NSPredicateEditor

2008-07-03 Thread Peter Ammon
On Jun 26, 2008, at 6:48 PM, Chris wrote: On Fri, Jun 27, 2008 at 10:09 AM, Peter Ammon <[EMAIL PROTECTED]> wrote: On Jun 25, 2008, at 7:27 PM, Chris wrote: The net effect is that NSPredicateEditor can't display a predicate like NOT (foo = "bar") A bug in NSPredicateEditor system

Re: NSPredicateEditor

2008-06-26 Thread Chris
On Fri, Jun 27, 2008 at 10:09 AM, Peter Ammon <[EMAIL PROTECTED]> wrote: > > On Jun 25, 2008, at 7:27 PM, Chris wrote: > >> >> The net effect is that NSPredicateEditor can't display a predicate like >> >> NOT (foo = "bar") >> >> >> A bug in NSPredicateEditor system perhaps? But surely someone woul

Re: NSPredicateEditor

2008-06-26 Thread Peter Ammon
On Jun 25, 2008, at 7:27 PM, Chris wrote: The net effect is that NSPredicateEditor can't display a predicate like NOT (foo = "bar") A bug in NSPredicateEditor system perhaps? But surely someone would have seen it before. Hi Chris, NOT type compound predicates only support exactly on

Re: NSPredicateEditor

2008-06-26 Thread Kyle Sluder
On Wed, Jun 25, 2008 at 4:12 PM, Peter Ammon <[EMAIL PROTECTED]> wrote: > If the holds down the option key and clicks a + button, it will insert > another compound row, so the user can make arbitrarily complex predicates. Well this is incredibly "undiscoverable UI". Bug report time! --Kyle Slude

Re: NSPredicateEditor

2008-06-25 Thread Peter Ammon
Hi Chris, If the holds down the option key and clicks a + button, it will insert another compound row, so the user can make arbitrarily complex predicates. If this doesn't seem to happen, make sure the nesting mode is set to compound. By default, NSPredicateEditor supports And, Or, and N

Re: NSPredicateEditor

2008-06-25 Thread Chris
Cool. Now I notice that if you manually plug in a complex predicate like "a = b or c = d and e = f", that it is capable of displaying it correctly. Do you know if there is any way to allow the user to create more complex expressions? By default it only seems to allow either AND or OR, bu

Re: NSPredicateEditor

2008-06-25 Thread Jim Turner
On Wed, Jun 25, 2008 at 1:08 AM, Chris <[EMAIL PROTECTED]> wrote: > Let's say I create a NSPredicateEditor and it looks like this: > > > [All] of the following are true: > > [Name] equals [ ] > --- > > So the user enters say "Fred" a