• 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: Reacting on changed NSPopupButton
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Reacting on changed NSPopupButton


  • Subject: Re: Reacting on changed NSPopupButton
  • From: Gian Marc Cadosch <email@hidden>
  • Date: Thu, 13 Oct 2005 23:17:48 +0200

Thank you joar, I've found the problem:

It was a wrong method definition...

- (IBAction) test {
    NSLog(@"TEST");
}

changed to:

- (IBAction) test:(id)sender {
    NSLog(@"TEST");
}

...and it works! Sometimes it's so simple...

I'm really glad, that there are so many nice people here helping us newbies!

Marc




On 13 okt 2005, at 23.03, Gian Marc Cadosch wrote:


I've already searched the net and the mailing list, but I can't find a solution on this simple problem:
I'd like to react on a changed NSPopupButton, that means as soon as the user selects a new item.
I've found no notification for that. I've also tried to attach an action, but that doesn't work.



Setting an action for the pop-up button, or for it's items, should work, so you must be doing something wrong. Check some sample code that uses pop-up buttons and try to figure out how your use of them differs from the implementations where it's working.


j o a r






_______________________________________________ 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
  • Prev by Date: Re: Reacting on changed NSPopupButton
  • Next by Date: Re: SyncServices.framework
  • Previous by thread: Re: Reacting on changed NSPopupButton
  • Next by thread: menuHeedsUpdate: and mouse down
  • Index(es):
    • Date
    • Thread