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

 
 

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

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

Submitted by:  Fred Kiefer <FredKiefer>
Submitted on:  Sat 26 Jun 2004 12:18:04 AM UTC  
 
Category: GormSeverity: 2 - Minor
Item Group: BugStatus: Fixed
Privacy: PublicAssigned to: Gregory John Casamento <gcasa>
Open/Closed: Closed

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>
Project 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>
Project AdministratorIn charge of this item.
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>
Project AdministratorIn charge of this item.
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>
Project AdministratorIn charge of this item.
Sat 26 Jun 2004 01:04:46 AM UTC, comment #1:

I am currently trying to recreat this without success.

Gregory John Casamento <gcasa>
Project AdministratorIn charge of this item.
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>
Project Member

 

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
Sat 26 Jun 2004 03:47:23 AM UTCgcasaStatusNone=>Fixed
  Open/ClosedOpen=>Closed
Sat 26 Jun 2004 01:04:46 AM UTCgcasaAssigned toNone=>gcasa

Back to the top


Powered by Savane 3.1-cleanup1