• 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: 2 NSRuleEditor questions?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 2 NSRuleEditor questions?


  • Subject: Re: 2 NSRuleEditor questions?
  • From: Peter Ammon <email@hidden>
  • Date: Thu, 19 Jun 2008 15:17:19 -0700


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 dictionary should have NSString keys and NSString values. The syntax of the keys and values is the same as the syntax for strings files."
But I admit I find this more confusing than helpful.
- On the second side I never see the delegate method being called like for numberOfChildrenForCriterion. Could it be related that the formattingDictionary of the NSRuleEditor is nil (my first question)?


I also looked at the PDF from WWDC 2007 which mentions NSRuleEditor ("Beyond BUttons and slider..."), but without success

Thanks

laurent

Hi Laurent,

The formatting dictionary is used for localization. You can see a sample at http://homepage.mac.com/gershwin/NibBasedSpotlightSearcher.zip

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.

-Peter

_______________________________________________

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


  • Follow-Ups:
    • Re: 2 NSRuleEditor questions?
      • From: Laurent Cerveau <email@hidden>
References: 
 >2 NSRuleEditor questions? (From: Laurent Cerveau <email@hidden>)

  • Prev by Date: Help debugging why NSOutlineView stops updating
  • Next by Date: Re: NSReponder chain and controllers
  • Previous by thread: 2 NSRuleEditor questions?
  • Next by thread: Re: 2 NSRuleEditor questions?
  • Index(es):
    • Date
    • Thread