discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSPopUpButton


From: Fred Kiefer
Subject: Re: NSPopUpButton
Date: Tue, 09 Oct 2001 10:12:36 +0200

Hi Georg,

Georg Fleischmann wrote:
> I think the problem is related to the setTarget or setAction method of
> NSMenuItem. During loading the gmodel the target and action of a menu item are
> set to nil (at least in my case). What seems to happen is, that in [NSMenuItem
> update] the application is asked for a target and returns nil, which results 
> in
> the item being disabled.

Oops, this problem should also be solved by the last change I did. Could
you please test it again. If it persists you will have to look into the
code in [NSMenu update], I must have missed a case there.

> 
> Another new problem with pop up menus is, that the NSPopUpButton returns the
> priviously selected item instead of the current selection (if asked inside the
> action method).

The way the popup button and its menu communicate about the selection is
a bit of a mess. We will have to check and probably rework most of the
code here. Don't expect this to happen soon.

Fred




reply via email to

[Prev in Thread] Current Thread [Next in Thread]