• 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
checkButton Binding in a tableView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

checkButton Binding in a tableView


  • Subject: checkButton Binding in a tableView
  • From: Administrateur internet lutin Ludique <email@hidden>
  • Date: Wed, 23 Jun 2004 15:33:49 +0200

Hi,

I'm new to bindings and, by following Michael Beam tutorial (thanks to him) I set my tableView to display and alter the dats of my arrayController.
The problem is that one of my columns is holding checkedButtons to reflect a boolean (in fact coded as an int) value. The cell reflects the state of the value, but when I click on the button, its state never changes. In IB, the column "is editable" button is ON.

Here is the code I use to create the checkButton column (thanks to I forgot who ...) :

checkedColumn = [cnxTable tableColumnWithIdentifier:@"remonte"];
checkedButton = [NSButtonCell new];
[checkedButton setButtonType: NSSwitchButton];
[checkedButton setTitle: @""];
[checkedColumn setDataCell: checkedButton];


Does anybody see where I'm having a (several) mistake ?

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


  • Prev by Date: Re: ATSUI, AAT and OpenType
  • Next by Date: Re: Attaching file types & icons to app
  • Previous by thread: Re: Attaching file types & icons to app
  • Next by thread: A new bug in NSTableView in Mac OS X 10.3?
  • Index(es):
    • Date
    • Thread