sender is nil in action method from NSPopupButtonCell in an NSTextFieldCell
sender is nil in action method from NSPopupButtonCell in an NSTextFieldCell
- Subject: sender is nil in action method from NSPopupButtonCell in an NSTextFieldCell
- From: Peter <email@hidden>
- Date: Thu, 15 Sep 2011 10:22:11 +0200
I have a header cell for an NSTableView based on NSTextFieldCell containing an NSPopupButtonCell.
I am setting the NSPopupButtonCell up programmatically. I set an action method for the NSPopupButtonCell in the standard fashion:
[self.popupCell setAction:@selector(headerCellPopupChanged:)];
This works in principle but when the dummy action method
- (void)headerCellPopupChanged:(id)sender{
NSLog(@"Changed: %@", sender);
}
is called, sender is nil:
Changed: (null)
Am I missing something? Has anybody seen this?
Thanks,
Peter_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden