• 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: Cocoa Bindings Question.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cocoa Bindings Question.


  • Subject: Re: Cocoa Bindings Question.
  • From: Ricky Sharp <email@hidden>
  • Date: Wed, 10 May 2006 13:04:30 -0500

On Wednesday, May 10, 2006, at 12:22PM, Kenneth Clark <email@hidden> wrote:

>I have an existing code base that I need to extend.  I have a model
>class that is bound to a custom control.  Cocoa bindings delivers the
>value that the control needs to is just fine.   When I edit it however,
>it doesn't get back to the model object.  In the documentation it
>states that the data value gets sent back to model object ( through the
>NSObjectController class ) when an objectDidEndEditing message is sent
>by the view.
>
>My question is:  since I have a custom control, what do I do to get the
>"edit" committed?   Normal built-in controls already do this
>automatically, but I have not been able to find how I do it manually in
>my custom control.

Check out mmalc's joystick control example.  It shows how to handle view-initiated changes.

--
Rick Sharp
Instant Interactive(tm)

 _______________________________________________
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

References: 
 >Cocoa Bindings Question. (From: Kenneth Clark <email@hidden>)

  • Prev by Date: Re: NSConditionLock vs. plain variable question...
  • Next by Date: Re: C++ gets translated into ObjC? Strange compiler errors...
  • Previous by thread: Cocoa Bindings Question.
  • Next by thread: Boolean Searches with Core Data
  • Index(es):
    • Date
    • Thread