• 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
sender is nil in action method from NSPopupButtonCell in an NSTextFieldCell
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Re: How to Support in-line attachments in NStextView
  • Next by Date: Re: How to Support in-line attachments in NStextView
  • Previous by thread: Re: How to Support in-line attachments in NStextView
  • Next by thread: SDK 10.5 on XCode 4.1
  • Index(es):
    • Date
    • Thread