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

Group
 
 

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

Submitter:  Rob Burns <rburns>
Submitted:  Sat 09 Aug 2003 08:21:22 PM UTC
   
 
Category:  Base/Foundation Severity:  3 - Normal
Item Group:  Bug Status:  Fixed
Privacy:  Public Assigned to:  None
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

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>
Group 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>
Group 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>

 

(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

 

CC list is empty

 

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

Date Changed by Updated Field Previous Value => Replaced by
2005-01-30 ratmice StatusWorks For Me Fixed
2004-12-28 CaS StatusNone Works For Me
    Open/ClosedOpen Closed

Back to the top

Powered by Savane 3.13-758e.
Corresponding source code