bugGNUstep - Bugs: bug #22332, Gorm doesn't save continuous...

Group
 
 

bug #22332: Gorm doesn't save continuous property of NSSlider

Submitter:  Quentin Mathé <qmathe>
Submitted:  Sat 16 Feb 2008 12:59:35 PM UTC
   
 
Category:  Gui/AppKit Severity:  3 - Normal
Item Group:  Bug Status:  Fixed
Privacy:  Public Assigned to:  gcasa
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Tue 19 Feb 2008 11:23:38 AM UTC, comment #4: 

Works well for me now. Thanks a lot.

Quentin Mathé <qmathe>
Group Member
Sun 17 Feb 2008 01:45:38 AM UTC, comment #3: 

Tested and verified.   Could you please test this to make sure it works properly.  I'm changing the status to "In Test".

Thanks. GJC

Gregory John Casamento <gcasa>
Group administrator
Sun 17 Feb 2008 01:40:28 AM UTC, comment #2: 

The problem stems from the following code in initWithCoder: in NSCell.m:

            }
          _action_mask = mask;
        }
      _action_mask = NSLeftMouseUpMask;   <-- HERE!!!
      [aDecoder decodeValueOfObjCType: @encode(id) at: &formatter];
      [self setFormatter: formatter];

This is on line 2650.   This was part of a set of changes made to properly convert the action mask from the values used in earlier version of GNUstep to the one's we should be using now for compatibility with OS X.

The value itself is encoded fine, it's just that when it's decoded, it's overwritten unconditionally.

I believe what's missing here is a "|" (bitwise OR).

I'll go ahead and make this change and test it.  Thanks. GC

Gregory John Casamento <gcasa>
Group administrator
Sat 16 Feb 2008 02:09:30 PM UTC, comment #1: 

Confirmed.   This was working a few releases ago, I'm not sure what broke it.   Thanks for the report.  GJC

Gregory John Casamento <gcasa>
Group administrator
Sat 16 Feb 2008 12:59:35 PM UTC, original submission:  

GNUstep make/base/back r26014, gui r26071 and Gorm r26014

If I check the continuous property of a slider in the Gorm NSSlider inspector, save the gorm file, close it then reopen it, the continuous checkbox isn't checked anymore.
I infer the property isn't saved because the slider sends action in a non-continuous way when the gorm file of the slider is loaded by my application.

Quentin.

Quentin Mathé <qmathe>
Group Member

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by gcasa (Posted a comment)
  • -email is unavailable- added by qmathe (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2008-02-19 gcasa Open/ClosedIn Test Closed
    2008-02-17 gcasa StatusIn Progress Fixed
    2008-02-17 gcasa Open/ClosedOpen In Test
    2008-02-17 gcasa CategoryGorm Gui/AppKit
    2008-02-16 gcasa StatusNone In Progress
        Assigned toNone gcasa

    Back to the top

    Powered by Savane 3.15-e6e5.
    Corresponding source code