bug-gnustep
[Top][All Lists]
Advanced

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

Problem with NSPopUpButton.


From: Pascal Bourguignon
Subject: Problem with NSPopUpButton.
Date: Thu, 4 Oct 2001 10:10:36 +0200 (CEST)

There is this problem with NSPopUpButton.

In  the   action  method  of  the   NSPopUpButton  instances,  [sender
selectedCell] does not return the same objects than on OPENSTEP 4.2.


With OPENSTEP 4.2:

The items obtained with -[NSPopUpButton itemAtIndex:]:

Oct 04 08:08:58 MapTreeTest[2839] curItem description: <NSMenuItem: 0x344d18>
Oct 04 08:08:59 MapTreeTest[2839] curItem description: <NSMenuItem: 0x34233c>
Oct 04 08:08:59 MapTreeTest[2839] curItem description: <NSMenuItem: 0x345d50>
Oct 04 08:08:59 MapTreeTest[2839] curItem description: <NSMenuItem: 0x34222c>
Oct 04 08:08:59 MapTreeTest[2839] curItem description: <NSMenuItem: 0x342274>
Oct 04 08:08:59 MapTreeTest[2839] curItem description: <NSMenuItem: 0x345910>
Oct 04 08:08:59 MapTreeTest[2839] curItem description: <NSMenuItem: 0x34218c>
Oct 04 08:08:59 MapTreeTest[2839] curItem description: <NSMenuItem: 0x342384>
Oct 04 08:08:59 MapTreeTest[2839] curItem description: <NSMenuItem: 0x345958>
Oct 04 08:08:59 MapTreeTest[2839] curItem description: <NSMenuItem: 0x345a00>
Oct 04 08:08:59 MapTreeTest[2839] curItem description: <NSMenuItem: 0x345bb4>
Oct 04 08:08:59 MapTreeTest[2839] curItem description: <NSMenuItem: 0x345a94>
Oct 04 08:08:59 MapTreeTest[2839] curItem description: <NSMenuItem: 0x345af8>



The selectedCell obtained in the action method:

Oct 04 08:10:25 MapTreeTest[2839] selectedCell description: <NSMenuItem: 
0x34222c>

This is one of the items in the pop up button.


With GNUstep 0.6.x:

The items obtained with -[NSPopUpButton itemAtIndex:]:

Oct 04 08:04:35 MapTreeTest[11178] curItem description: <NSMenuItem: 84272f8>
Oct 04 08:04:35 MapTreeTest[11178] curItem description: <NSMenuItem: 8429408>
Oct 04 08:04:35 MapTreeTest[11178] curItem description: <NSMenuItem: 842b328>
Oct 04 08:04:35 MapTreeTest[11178] curItem description: <NSMenuItem: 8427540>
Oct 04 08:04:35 MapTreeTest[11178] curItem description: <NSMenuItem: 84279d0>
Oct 04 08:04:35 MapTreeTest[11178] curItem description: <NSMenuItem: 842a920>
Oct 04 08:04:35 MapTreeTest[11178] curItem description: <NSMenuItem: 842ae80>
Oct 04 08:04:35 MapTreeTest[11178] curItem description: <NSMenuItem: 8427b70>
Oct 04 08:04:35 MapTreeTest[11178] curItem description: <NSMenuItem: 8428068>
Oct 04 08:04:35 MapTreeTest[11178] curItem description: <NSMenuItem: 8428518>
Oct 04 08:04:35 MapTreeTest[11178] curItem description: <NSMenuItem: 8430338>
Oct 04 08:04:35 MapTreeTest[11178] curItem description: <NSMenuItem: 84308b8>
Oct 04 08:04:35 MapTreeTest[11178] curItem description: <NSMenuItem: 8430d68>

(That's OK, similar result as OPENSTEP).


The selectedCell obtained in the action method:

Oct 04 08:05:08 MapTreeTest[11178] selectedCell description: 
<NSPopUpButtonCell: 8420528>

Here, we have a problem.



This problem  occured when trying  to use the  class ScalingScrollView
from the AppKit Example TextEdit.



In general,  this kind of stuff  is not always stated  in the OpenStep
Specifications,  and I won't  even evoke  MacOSX.  However,  in object
oriented  programming  the relations  between  the  instances and  the
classes  of  these instances  are  as  important  as the  mere  method
signatures to specify the API.

I guess that  we're going to find more and more  problems of this kind
as we port OPENSTEP sources to GNUstep...

-- 
__Pascal_Bourguignon__              (o_ Software patents are endangering
()  ASCII ribbon against html email //\ the computer industry all around
/\  and Microsoft attachments.      V_/ the world http://lpf.ai.mit.edu/
1962:DO20I=1.100  2001:my($f)=`fortune`;  http://petition.eurolinux.org/

-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCS/IT d? s++:++(+++)>++ a C+++  UB+++L++++$S+X++++>$ P- L+++ E++ W++
N++ o-- K- w------ O- M++$ V PS+E++ Y++ PGP++ t+ 5? X+ R !tv b++(+)
DI+++ D++ G++ e+++ h+(++) r? y---? UF++++
------END GEEK CODE BLOCK------



reply via email to

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