• 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
bindings with NSView subclass
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bindings with NSView subclass


  • Subject: bindings with NSView subclass
  • From: Alan Donsky <email@hidden>
  • Date: Sun, 22 Feb 2004 22:40:45 -0600

Anybody know how to make bindings work in a custom NSView?

Here is what i have done:

Called exposeBinding: in the views initialize method for the instance
variable i want to bind.

Written KVC compliant acceccors for the instance variable

Called bind:toObject:withKeyPath:options: in awakeFromNib to make the
binding to a controller,

It works pretty well in that changes to the model result in changes to
the view, but the problem is that if i make changes in the view, they
do NOT cause a change in the model. I am not sure how this is supposed
to work.

Thanks. i can give more details if needed.

alan
_______________________________________________
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.

  • Follow-Ups:
    • Re: bindings with NSView subclass
      • From: mmalcolm crawford <email@hidden>
  • Prev by Date: New to Objective-C/Cocoa Programming
  • Next by Date: Re: Playing a particular tone
  • Previous by thread: Re: New to Objective-C/Cocoa Programming
  • Next by thread: Re: bindings with NSView subclass
  • Index(es):
    • Date
    • Thread