Re: NSRuleEditor: Criteria for new row

2009-12-23 Thread Houdah - ML Pierre Bernard
I was able to fake it by subclassing a private method: - (void)_addOptionFromSlice:(id)slice ofRowType:(unsigned int)type { int rowIndex = [(NSRuleEditorViewSlice*)slice rowIndex]; NSArray *criteriaForRow = [self criteriaForRow:rowIndex]; NSArray *displayValuesForRow = [se

Re: NSRuleEditor: Criteria for new row

2009-12-22 Thread Peter Ammon
On Dec 22, 2009, at 10:57 AM, Houdah - ML Pierre Bernard wrote: > When I hit the "+" button on a row in NSRuleEditor, a new row is created. How > can I take influence on the criteria used for that row. > > It seems NSRuleEditor defaults to selecting the first criterion sequentially > from the

Re: NSRuleEditor rows binding

2009-12-04 Thread Peter Ammon
On Dec 4, 2009, at 1:08 PM, Carter R. Harrison wrote: > Apple's documentation for NSRuleEditor indicates that it exposes a binding > named "rows". When I drag an NSRuleEditor onto my NSWindow in IB, I flip > over to the Bindings tab of the inspector and I don't see any bindings named > "rows"

Re: NSRuleEditor rows binding

2009-12-04 Thread Jerry Krinock
On 2009 Dec 04, at 13:08, Carter R. Harrison wrote: > Apple's documentation for NSRuleEditor indicates that it exposes a binding > named "rows". When I drag an NSRuleEditor onto my NSWindow in IB, I flip > over to the Bindings tab of the inspector and I don't see any bindings named > "rows".

Re: NSRuleEditor

2009-06-30 Thread Loukas Kalenderidis
Thanks Ashley. I've had a bit of a look at that code and it looks pretty useful but I ADD'd off to another part of the app so I'll come back to it soon :D I'll file the bug too. Cheers, Loukas On 29/06/2009, at 5:09 PM, Ashley Clark wrote: On Jun 28, 2009, at 8:29 PM, Loukas Kalenderidis w

Re: NSRuleEditor

2009-06-29 Thread Ashley Clark
On Jun 28, 2009, at 8:29 PM, Loukas Kalenderidis wrote: There's no sample code for NSRuleEditor, right? Or am I missing something? I saw someone ask this on a list last year and the answer was "no, but I've got a sample I can send you" - does anyone have anything they're willing to share?

Re: NSRuleEditor/NSPredicateEditor selected rows

2008-10-31 Thread Peter Ammon
On Oct 31, 2008, at 12:17 AM, Houdah - ML Pierre Bernard wrote: Hi! NSRuleEditor has the concept of selected rows in its API. I however see no visual clues of which rows are selected. Is it possible to subclass whatever cell view is used by the rule editor to add such a visual clue? Pi