• 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: Problems subclassing NSTableView and NSOutlineView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problems subclassing NSTableView and NSOutlineView


  • Subject: Re: Problems subclassing NSTableView and NSOutlineView
  • From: Todd Blanchard <email@hidden>
  • Date: Wed, 6 Jul 2005 22:14:26 -0700

OK I read all of it. It makes no sense to me. There is lots of text for the beginner, but for one who gets the concept and has used it in half a dozen other languages, the essentials of the implementation are missing.

Its not at all clear which methods I'm supposed to implement and which ones have decent default implementations.

The only one that is clear is that I need to provide

+(void)initialize
{
    [self exposeBinding: @"rowColor"];
}

apparently exposedBindings already does what it should.

Do I need to add ivars to hang onto the controller, value transformer, etc as in the example code in the joystick view in "How bindings work" or is this just meant to illustrate what is going on? That seems like an awful lot of boilerplate for each binding - why does the controller not manage all of this - or does it?

Its also not clear how I get IB to provide UI for setting up the bindings. Am I supposed to write a pallet for my NSOutlineView subclass or what?
I have submitted my feedback regarding the docs - they're awful.



On Jul 6, 2005, at 7:32 PM, Scott Anguish wrote:


On Jul 6, 2005, at 9:10 PM, mmalcolm crawford wrote:



On Jul 6, 2005, at 5:56 PM, Todd Blanchard wrote:



The question - how to make my own binding and start observing for it in the NSOutlineView.



<http://developer.apple.com/documentation/Cocoa/Conceptual/ CocoaBindings/Concepts/HowDoBindingsWork.html>
<http://developer.apple.com/samplecode/BindingsJoystick/ BindingsJoystick.html>


and if you're using Tiger:

<http://developer.apple.com/documentation/Cocoa/Reference/ ApplicationKit/Java/Protocols/NSKeyValueBindingCreation.html#// apple_ref/doc/uid/20002206-BCIIFCEH>




that second one is the Java protocols.. I think you'd actually want


http://developer.apple.com/documentation/Cocoa/Reference/ ApplicationKit/ObjC_classic/Protocols/ NSKeyValueBindingCreation.html#//apple_ref/doc/uid/20002048


specifically infoForBinding:


_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: Problems subclassing NSTableView and NSOutlineView
      • From: mmalcolm crawford <email@hidden>
    • Re: Problems subclassing NSTableView and NSOutlineView
      • From: Scott Anguish <email@hidden>
References: 
 >Problems subclassing NSTableView and NSOutlineView (From: Todd Blanchard <email@hidden>)
 >Re: Problems subclassing NSTableView and NSOutlineView (From: mmalcolm crawford <email@hidden>)
 >Re: Problems subclassing NSTableView and NSOutlineView (From: Scott Anguish <email@hidden>)

  • Prev by Date: Best cocoa interface for serial
  • Next by Date: Re: NSToolbar & autosave...
  • Previous by thread: Re: Problems subclassing NSTableView and NSOutlineView
  • Next by thread: Re: Problems subclassing NSTableView and NSOutlineView
  • Index(es):
    • Date
    • Thread