• 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
NSRuleEditor as a data structure editor
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSRuleEditor as a data structure editor


  • Subject: NSRuleEditor as a data structure editor
  • From: Paul Thomas <email@hidden>
  • Date: Sun, 26 Jul 2009 10:35:13 +0100

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 with predicates, but the user interaction is a good fit for what I want.

There seems to be very little information around about NSRuleEditor if it's not tied to predicates, particularly when it comes to subclassing. I haven't figured out how to make this work at all, so I'm currently relying on a delegate and a binding to the 'rows' property of the same delegate.

So my question: does anyone have any examples of _subclassing_ NSRuleEditor?

I'm thinking that I could make the current delegate a subclass of NSRuleEditor, have it bind to itself and set itself as delegate, but then I need to hide the -setDelegate from the user. It sounds a bit icky, but I definitely don't want to be relying on internals that might change - so If anyone has any suggestions, I'd be grateful.

Paul.

_______________________________________________

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


  • Prev by Date: Ordered Arrays for Core Data managed objects
  • Next by Date: When is an NSTextField editor created?
  • Previous by thread: Ordered Arrays for Core Data managed objects
  • Next by thread: When is an NSTextField editor created?
  • Index(es):
    • Date
    • Thread