Re: How do I get data out of NSRuleEditor?

2016-06-26 Thread Jerry Krinock
> On 2016 Jun 26, at 12:29, Jim Thomason wrote: > > I've been desperately trying to use NSRuleEditor for a while now, since it > presents exactly the type of interface I want to show to the users. NSRuleEditor and NSPredicateEditor give you a quite a boatload, but as you’ve di

How do I get data out of NSRuleEditor?

2016-06-26 Thread Jim Thomason
I've been desperately trying to use NSRuleEditor for a while now, since it presents exactly the type of interface I want to show to the users. But I can't figure out how to properly get data out of it. I can configure all of the delegate methods to build the interface, but then what?

NSRuleEditor help?

2013-01-15 Thread Jim Thomason
Is there a good tutorial or set of examples out there for NSRuleEditor? I'm quite interested in using the class, but the lack of documentation is definitely a hindrance. I found a couple of light examples that I'm trying to work through and reverse engineer the rest of the functionality

NSRuleEditor with variable-height rows?

2012-03-16 Thread Demitri Muna
Hi, I was wondering if it might be possible to implement an NSRuleEditor with variable-height rows. There is a "rowHeight" property that can be set, but that sets the same height for all rows. I can override it with a subclass, but I don't see any obvious way to know which row

Re: Is NSRuleEditor worth the learning curve?

2012-01-31 Thread Peter Ammon
On Jan 28, 2012, at 4:23 PM, Erik Stainsby wrote: > Hello list folks, > > I'm struggling with the abstraction and sketchy documentation that surround > NSRuleEditor. I feel a need to know that the effort is worthwhile, versus > cobbling together something in a table or

Re: Is NSRuleEditor worth the learning curve?

2012-01-29 Thread Fritz Anderson
On 28 Jan 2012, at 6:23 PM, Erik Stainsby wrote: > One example I have found (NibBasedSpotlightSearcher.xcodeproj - circa 2006) > presents a window in the nib which holds clusters of related controls in a > single view. I'm doing the gasping guppy trying to see where in the code > those individu

Is NSRuleEditor worth the learning curve?

2012-01-28 Thread Erik Stainsby
Hello list folks, I'm struggling with the abstraction and sketchy documentation that surround NSRuleEditor. I feel a need to know that the effort is worthwhile, versus cobbling together something in a table or outline view instead. The domain I am working in really fits well withi

NSRuleEditor templates?

2012-01-27 Thread Erik Stainsby
Hello list, Forgive me if this has been asked and answered, but what does one do in XC4.2 to create the requisite rule editor templates? I find nothing useful in the docs on this topic, and the only example code used IB 3.0 to do this task. Help? Erik

Re: Can you obtain the NSRuleEditor localized display?

2010-03-10 Thread John C. Daub
on 3/10/10 6:01 PM, Peter Ammon at pam...@apple.com wrote: > On Mar 10, 2010, at 11:30 AM, John C. Daub wrote: > >> Can you obtain the localized display of an NSRuleEditor? >> > [...] > >> I can't see any way to extract the actual displayed GUI (post-forma

Re: Can you obtain the NSRuleEditor localized display?

2010-03-10 Thread Peter Ammon
On Mar 10, 2010, at 11:30 AM, John C. Daub wrote: > > Can you obtain the localized display of an NSRuleEditor? > [...] > I can't see any way to extract the actual displayed GUI (post-formatting), > other than obtaining the criteria or displayValues myself, obtaining the &g

Can you obtain the NSRuleEditor localized display?

2010-03-10 Thread John C. Daub
Can you obtain the localized display of an NSRuleEditor? I have an NSRuleEditor displaying my rule setup. The app has functionality where it provides a text summary of the search rules that generated the results. When I call -[NSRuleEditor displayValuesForRow:], that returns the actual display

Re: NSRuleEditor: Criteria for new row

2009-12-23 Thread Houdah - ML Pierre Bernard
objectAtIndex:0] andDisplayValues:[template objectAtIndex:1] forRowAtIndex:rowIndex]; } } Pierre On Dec 23, 2009, at 12:37 AM, Peter Ammon wrote: > > On Dec 22, 2009, at 10:57 AM, Houdah - ML Pierre Bernard wrote: > >> When I hit the "+" button on a row in NSRuleEdi

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 se

NSRuleEditor: Criteria for new row

2009-12-22 Thread Houdah - ML Pierre Bernard
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 list of possible values. I would much rather have the new row

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 se

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 se

NSRuleEditor rows binding

2009-12-04 Thread Carter R. Harrison
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". Anybody else manage to setup

Re: NSMenuItem & NSRuleEditor

2009-09-27 Thread Frederick Bartram
There is very little documentation on NSRuleEditor. :( First, you need to distinguish between a 'criterion' and a 'display value' although they may be the same kind of classes. The criterion is a kind of identifier and the display value is what is actually shown. It is a

Re: NSMenuItem & NSRuleEditor

2009-09-26 Thread Jon Hull
It is called. I just figured out a workaround... apparently if I pass it a string NSRuleEditor will create a menuItem for me. Just tested and it is working now. The documentation is so bad on this area, maybe I will post some example code when I get it all worked out... Thanks for your

Re: NSMenuItem & NSRuleEditor

2009-09-26 Thread Andy Lee
On Sep 26, 2009, at 4:09 PM, Jon Hull wrote: • I can get the NSRuleEditor to display menuItems from a popup loaded from the XIB (as in the example I found) • I can load in the plist and confirm that the resulting dictionary/ array structure as well as the return values for the #ofChildren

NSMenuItem & NSRuleEditor

2009-09-26 Thread Jon Hull
I must be missing something in the documentation. I am trying to populate a Rule Editor with choices from a plist file. The plan is to create and return an NSMenuItem for each string stored in the corresponding spot in a plist. Here is what IS working: • I can get the NSRuleEditor to

NSRuleEditor as a data structure editor

2009-07-26 Thread Paul Thomas
I may have bitten off more than I can chew, but I'm trying to use NSRuleEditor as a component to define and edit a Foundation data structure (general purpose tree of NSArray, NSDictionary, NSNumber etc.). This might be re-purposing the class a little and it certainly has little to do

Re: NSRuleEditor

2009-06-30 Thread Loukas Kalenderidis
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

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

NSRuleEditor

2009-06-28 Thread Loukas Kalenderidis
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? I remember seeing in the "

NSRuleEditor bindings

2009-01-12 Thread cacaodev
Hello, Has anyone achieved to use NSRuleEditor with the "rows" bindings. I can use it successfully when it's binded to an ivar of a controller object. Now i'm trying to bind "rows" to a NSArrayController. The first time I select an object of the NSArr

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

NSRuleEditor/NSPredicateEditor selected rows

2008-10-31 Thread Houdah - ML Pierre Bernard
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? Pierre ___ Cocoa-dev

Re: 2 NSRuleEditor questions?

2008-08-27 Thread Jamie Phelps
Hi, Laurent. I realize this is quite old, but I have been wrestling with NSRuleEditor myself for a while. The main difference between NSTableView and NSRuleEditor is that NSRuleEditor is more accurately understood as a tree or network whereas NSTableView is a multi-dimensional array, [rows

NSRuleEditor with Multiple Root Criteria Yields Empty Row

2008-08-27 Thread Jamie Phelps
Hi, all. I've been banging my head against this for some time now and I'm at a bit of a loss. I've searched the archives and haven't found much info on NSRuleEditor other than before Leopard was released and it was taboo because of NDA. Bear with me as I've done so

Re: 2 NSRuleEditor questions?

2008-06-19 Thread Laurent Cerveau
the rule editor has no rows in it. Try hooking up a button to its addRow: method. This helps! However this brings me one question. I donot get exactly what is the exact purpose of "- (NSInteger)ruleEditor:(NSRuleEditor *)editor numberOfChildrenForCriterion:(id)criterion withRo

Re: 2 NSRuleEditor questions?

2008-06-19 Thread Peter Ammon
On Jun 19, 2008, at 2:19 PM, Laurent Cerveau wrote: Hi Hi I have 2 questions related to NSRuleditor (not NSPRedicateEditor); - On one side, I can not find the format of a formattingDictionary for a NSRuleEditor. If I look at the doc the only thing I find is " The formatting dicti

2 NSRuleEditor questions?

2008-06-19 Thread Laurent Cerveau
Hi Hi I have 2 questions related to NSRuleditor (not NSPRedicateEditor); - On one side, I can not find the format of a formattingDictionary for a NSRuleEditor. If I look at the doc the only thing I find is " The formatting dictionary should have NSString keys and NSString values. The s