Re: Reacting on changed NSPopupButton
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