• 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 Custom NSCell Binding Issue
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cocoa Custom NSCell Binding Issue


  • Subject: Re: Cocoa Custom NSCell Binding Issue
  • From: Hamish Allan <email@hidden>
  • Date: Thu, 12 Jan 2006 11:18:41 +0000


On 12 Jan 2006, at 02:32, email@hidden wrote:

1. When each cell is getting set up it first gets passed a value of null to
setObjectValue, then I see my getter method on Object A get called, and
finally the setObjectValue with the NSNumber from the rating method is set
on the NSCell. So why does it pass null in first? any ideas?

I've seen this bug in NSOutlineView bindings as well. It should be fine to work around it by ignoring nil.


2. When I change the rating via the cell it reverts back to what it was set
to before that. I have tried notifying the "objectValue" binding that it
changed as stated above, there is no action/target set but I have that code
in place when there is one to notify that.

It sounds like your setObjectValue: method is being called, but is your objectValue method? Which way round are they being called?


Best wishes,
Hamish

_______________________________________________
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: Cocoa Custom NSCell Binding Issue
      • From: Sean Willson <email@hidden>
  • Prev by Date: Re: Cocoa control in carbon window
  • Next by Date: Cells within cells (specifically in outline views)
  • Previous by thread: Cocoa Custom NSCell Binding Issue
  • Next by thread: Re: Cocoa Custom NSCell Binding Issue
  • Index(es):
    • Date
    • Thread