• 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, 19 Jan 2006 02:52:14 +0000


On Thu, 12 Jan 2006 09:35:13 -0600, Sean Willson <email@hidden> wrote:


On 1/12/06, Hamish Allan <email@hidden> wrote:

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

I have fully implemented the objectValue method conforming to the interface,
added some NSLog statements in there to see if it ever gets called and it
does not. Is there something special that I have to do to get this working.

Try using doubleValue instead. It seems that NSValueBinder (which is used when you bind to an NSTableColumn's "value" binding) prefers doubleValue to objectValue (i.e., doesn't bind to objectValue if the cell responds to doubleValue). If that doesn't work, try floatValue, intValue, etc.


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


  • Prev by Date: Re: CoreData and NSPasteboard for
  • Next by Date: NSDateFormatter vs. -setTimeZone: ?
  • Previous by thread: Re: Cocoa Custom NSCell Binding Issue
  • Next by thread: Re: Cocoa Custom NSCell Binding Issue
  • Index(es):
    • Date
    • Thread