bugGNUstep - Bugs: bug #9463, Changing the name of an outlet for...

Group
 
 

bug #9463: Changing the name of an outlet for a custom class fails

Submitter:  Fred Kiefer <FredKiefer>
Submitted:  Sat 26 Jun 2004 12:18:04 AM UTC
   
 
Category:  Gorm Severity:  2 - Minor
Item Group:  Bug Status:  Fixed
Privacy:  Public Assigned to:  gcasa
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Sat 26 Jun 2004 11:45:09 AM UTC, comment #5: 

I was the one who changed the NSTableView, so it is only fair that I did get the resulting problem. This change was made to allow other cells in a table view, for example combo boxes, to change their value without editing, that is just by a mouse click. So the code here is basically correct and needed. What we could change is to cache the value of the cell and see if it actually has changed.

There is an additonal idea from Matt Rice that the update should only be send when the sendsActionOnEndEditing method of the cell returns false and that NSTextFieldCell should set this to false. But I am still trying to understand the logic here

Fred Kiefer <FredKiefer>
Group Member
Sat 26 Jun 2004 03:47:23 AM UTC, comment #4: 

I have added some code in GormDocument's data source method "outlineView:setObjectValue:forTableColumn:byItem:" to correct the issue.  I'm also not certain that the behavior of NSTableView , as described in my previous note, is correct.  The change I made to Gorm should work correctly in either case.  GJC

Gregory John Casamento <gcasa>
Group administrator
Sat 26 Jun 2004 03:12:57 AM UTC, comment #3: 

I have tracked this to a recent change in the [NSTableView mouseDown:] method which calls:

  [self _setObjectValue: [cell objectValue]
forTableColumn: tb
row: _clickedRow];
At NSTableView.m:3483

At this point the [cell objectValue] will always the current value of this since nothing has been changed in the cell.

Is there any reason for this?

This is what is causing the current breakage in Gorm and should cause issues in all other apps which use tables that accept data values typed by the user.

I am continuuing to look into the issue.

Also, this issue does not occur with the 0.9.3 release of GUI.

GJC

Gregory John Casamento <gcasa>
Group administrator
Sat 26 Jun 2004 01:22:38 AM UTC, comment #2: 

Recreated.   I was trying to do this through the class inspector, not the outline view.   Alex P. informed me that he was able to do it throught the menu and the outlineview, and I was able to see the issue.

The workaround to this issue is to use the inspector for class operations.  I have been considering removing the outline view recently as it would:

1) simplify code
2) avoid issues like this

However, a lot of people seem to like the outlineview as it is similar to the IB interface presented in OS4.2.

I believe I know what's causing this, so I should have a fix for it soon.

GJC

Gregory John Casamento <gcasa>
Group administrator
Sat 26 Jun 2004 01:04:46 AM UTC, comment #1: 

I am currently trying to recreat this without success.

Gregory John Casamento <gcasa>
Group administrator
Sat 26 Jun 2004 12:18:04 AM UTC, original submission:  

Trying to change the name of a newly added outlet in a custom class (not a view) results in the exception:

Uncaught exception NSInvalidArgumentException, reason: Tried to init array with nil object

Fred Kiefer <FredKiefer>
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

 

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
2004-06-26 gcasa StatusNone Fixed
    Open/ClosedOpen Closed
2004-06-26 gcasa Assigned toNone gcasa

Back to the top

Powered by Savane 3.13-f8d8.
Corresponding source code