bugGNUstep - Bugs: bug #4692, problem with...

 
 

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

bug #4692: problem with registerUndoWithTarget: selector: object:

Submitted by:  Rob Burns <rburns>
Submitted on:  Sat 09 Aug 2003 08:21:22 PM UTC  
 
Category: Base/FoundationSeverity: 3 - Normal
Item Group: BugStatus: Fixed
Privacy: PublicAssigned to: None
Open/Closed: Closed

Sun 30 Jan 2005 12:01:32 PM UTC, comment #2:

according to the documentation registerUndoWithTarget:selector:object: should retain the object argument.

Fixed in cvs 2005-01-29

matt rice <ratmice>
Project Member
Tue 28 Dec 2004 10:54:34 AM UTC, comment #1:

Looks OK and nobody has reproduced this ... possibly an app bug?

Richard Frith-Macdonald <CaS>
Project Member
Sat 09 Aug 2003 08:21:22 PM UTC, original submission:

Using this code:

[undoManager registerUndoWithTarget:self selector:@selector(setState:) object:[em state]];

[undoManager undo];
[undoManager undo];

setState: only gets called the second time.

an example NSLog from this program: http://paiges.net/misc/EdenMath_test.tar.gz

bash-2.05b$ openapp EdenMath
2003-08-10 03:00:18.025 EdenMath[15367] em state - {current_value = 0; isNewDigit = YES; op_type = 0; previous_value = 0; trailing_digits = 0; }
2003-08-10 03:00:19.220 EdenMath[15367] we are undoing
2003-08-10 03:00:19.908 EdenMath[15367] we are undoing
2003-08-10 03:00:19.918 EdenMath[15367] setState in EMController
2003-08-10 03:00:19.929 EdenMath[15367] em state - {current_value = 2; isNewDigit = NO; op_type = 0; previous_value = 0; trailing_digits = 0; }
Segmentation fault
bash-2.05b$

using gnustep cvs from August 8

Rob Burns <rburns>

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

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 3 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Sun 30 Jan 2005 12:01:32 PM UTCratmiceStatusWorks For Me=>Fixed
Tue 28 Dec 2004 10:54:34 AM UTCCaSStatusNone=>Works For Me
  Open/ClosedOpen=>Closed

Back to the top


Powered by Savane 3.1-cleanup1