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

 
 

You are not allowed to post comments on this tracker with your current authentication level.

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

Submitted by:  Quentin Mathé <qmathe>
Submitted on:  Sat 16 Feb 2008 12:59:35 PM UTC  
 
Category: Gui/AppKitSeverity: 3 - Normal
Item Group: BugStatus: Fixed
Privacy: PublicAssigned to: Gregory John Casamento <gcasa>
Open/Closed: Closed

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

Works well for me now. Thanks a lot.

Quentin Mathé <qmathe>
Project 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>
Project AdministratorIn charge of this item.
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>
Project AdministratorIn charge of this item.
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>
Project AdministratorIn charge of this item.
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>
Project Member

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 6 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 19 Feb 2008 12:50:37 PM UTCgcasaOpen/ClosedIn Test=>Closed
    Sun 17 Feb 2008 01:59:58 AM UTCgcasaStatusIn Progress=>Fixed
    Sun 17 Feb 2008 01:45:38 AM UTCgcasaOpen/ClosedOpen=>In Test
    Sun 17 Feb 2008 01:40:28 AM UTCgcasaCategoryGorm=>Gui/AppKit
    Sat 16 Feb 2008 02:09:30 PM UTCgcasaStatusNone=>In Progress
      Assigned toNone=>gcasa

    Back to the top


    Powered by Savane 3.1-cleanup1