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

Re: Action of the checkboxes in a table view not getting called


  • Subject: Re: Action of the checkboxes in a table view not getting called
  • From: Apparao <email@hidden>
  • Date: Tue, 27 Jun 2006 13:49:04 +0530

Hi,

You have to set the target of the Action cell. Use the following method to set the target.

	- (void)setTarget:(id)anObject

- Apparao

On 27-Jun-06, at 12:04 PM, Brahmendra Kashyap wrote:

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:
40effigent.net


This email sent to email@hidden


_______________________________________________ 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
References: 
 >Action of the checkboxes in a table view not getting called (From: "Brahmendra Kashyap" <email@hidden>)

  • Prev by Date: Re: CoreData sort order
  • Next by Date: undo without dirty document
  • Previous by thread: Action of the checkboxes in a table view not getting called
  • Next by thread: CoreData sort order
  • Index(es):
    • Date
    • Thread