• 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 Trap?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Bindings Trap?


  • Subject: Bindings Trap?
  • From: August Trometer <email@hidden>
  • Date: Thu, 18 Nov 2004 06:46:06 -0500

Because I'm still new to Cocoa, I'm still very much in learning mode, and right now I'm grappling with bindings. I have successfully set up my array controllers and their dependencies, and everything works just fine. In fact, I love a lot of the power that bindings give me.

The problem, however, is making custom changes to my tables.

For example, I have a table that most items will have an NSButtonCell which is a checkbox. Several items, however, should _not_ have a button, but rather an NSImageCell. In former experiments, I've gotten this to work by using table delegate methods, specifically tableView:objectValueForTableColumn:row:. With bindings, it seems that this is not possible. I can't get this method to respond, either in it's own custom NSTableView class or in the my main contoller.m. And I have double-checked to make sure the delegate for the table is specified properly.

I've also tried to set up a method in my datasource object class which returns either a NSButtonCell or an NSImageCell depending on the object, but I can't seem to get the bindings to read it properly. For example, I'll set the value of the cell to the custom method, but it ignores the return.

Is there a way around this that I'm missing, or is this sort of a bindings trap?

Thanks!

August

_______________________________________________
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: Drag and Drop
  • Next by Date: Checking text styles
  • Previous by thread: Re: Drag and Drop
  • Next by thread: Checking text styles
  • Index(es):
    • Date
    • Thread