Re: 2 NSRuleEditor questions?
Re: 2 NSRuleEditor questions?
- Subject: Re: 2 NSRuleEditor questions?
- From: Laurent Cerveau <email@hidden>
- Date: Fri, 20 Jun 2008 00:42:18 +0200
Hi Peter
The formatting dictionary is used for localization. You can see a
sample at http://homepage.mac.com/gershwin/NibBasedSpotlightSearcher.zip
Nice! Thanks for the pointer.
A nil formatting dictionary should be fine. The delegate methods
are probably not being called because 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 withRowType:
(NSRuleEditorRowType)rowType" if rows needs to be added with addRow? I
have more in mind on the NSTableView paradigm where data reloading is
the "main trigger", and here obviously this is not the case. Where is
my mistale in "comparing" with an NSTableView datasource?
Thanks
laurent
_______________________________________________
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