• 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: Providing bindings support
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Providing bindings support


  • Subject: Re: Providing bindings support
  • From: Scott Anguish <email@hidden>
  • Date: Mon, 15 Dec 2003 03:41:33 -0500

On Dec 15, 2003, at 1:49 AM, Chris Hanson wrote:

Does anyone know of any documentation that will give you a crash course on making a view that supports bindings. I'm actually just subclassing an nstextview and would like to add some additional bindings but am unsure how to do so.

In your NSTextField subclass itself, you'll need to use a +initialize class method to register your bindings with +[NSObject(NSKeyValueBindingCreation) exposeBinding:].

You'll also have to create an Interface Builder palette containing your NSTextField subclass. This is because there's currently no other way (to my knowledge anyway) to tell Interface Builder that a class has a particular binding.

This is correct, you need to make a palette and ensure that it is loaded.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
References: 
 >Providing bindings support (From: Francisco Tolmasky <email@hidden>)
 >Re: Providing bindings support (From: Chris Hanson <email@hidden>)

  • Prev by Date: Re: Odd memory issue -- not a newbie
  • Next by Date: Re: A little doubt about NSTableView.
  • Previous by thread: Re: Providing bindings support
  • Next by thread: Drag & Drop on in a NSMatrix
  • Index(es):
    • Date
    • Thread