• 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
Action of the checkboxes in a table view not getting called
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Action of the checkboxes in a table view not getting called


  • Subject: Action of the checkboxes in a table view not getting called
  • From: "Brahmendra Kashyap" <email@hidden>
  • Date: Tue, 27 Jun 2006 12:04:14 +0530

Hi

I have a table view which comes up in a panel. One of the columns of the
table view consists of check boxes. I have associated an action with that
column which should be called whenever any one of the check boxes are
clicked. But the action is not getting called.
The code used is:

   NSButtonCell *aBCell  = [[NSButtonCell alloc] init];
   [retrieveBOMTableView setDrawsStripes:NO];
   [aBCell setButtonType:NSSwitchButton];
   [aBCell setEnabled:YES];
   [aBCell setEditable:NO];
   [aBCell setTitle:@""];
   [aBCell setImagePosition:NSImageOverlaps];
   [aBCell setAction:@selector(checkBoxChanged)];
   [[retrieveBOMTableView tableColumnWithIdentifier:@"CHECK_FLAG"]
setDataCell:aBCell];
   [retrieveBOMTableView setDrawsStripes:YES];


-(IBAction)checkBoxChanged:(id)sender { NSLog(@"in the function checkBoxChanged"); [self setDocumentEdited:YES]; }

The delegates are also set properly.

The action checkBoxChanged is not getting called when the check box is
clicked.
Can anyone please let me know the reason for this.

Thanks in advance,
Brahmendra Kashyap
_______________________________________________
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: Action of the checkboxes in a table view not getting called
      • From: Apparao <email@hidden>
  • Prev by Date: Re: NSStrings and data bytes
  • Next by Date: CoreData sort order
  • Previous by thread: General Remote CoreData Stores Question
  • Next by thread: Re: Action of the checkboxes in a table view not getting called
  • Index(es):
    • Date
    • Thread