Re: NSBrowser will not select row 0 (With Source)
Re: NSBrowser will not select row 0 (With Source)
- Subject: Re: NSBrowser will not select row 0 (With Source)
- From: Frank Cobia <email@hidden>
- Date: Mon, 2 Jul 2001 23:22:02 -0400
I did not get much help with my NSBrowser problem so I decided to put a
copy of the source code for download. Maybe people can give me a better
idea if they actually have the code.
You can find it at
http://homepage.mac.com/frank_cobia/SQLRunner.tar.gz
To see the bug do the following steps:
1) Click cancel on the window that pops up (it is not relevent to the
bug)
2) From the menus select Drivers -> Show Driver Editor
3) Click the "Add New" button in the window that cam up after step 2.
4) Click the "Remove" button.
After step 4 the first entry should be selected. If you ask the
NSBrowser for the selected row, it will tell you that it is selected,
but it does not show it on the screen. Also, if you click on "Add New"
at this point it sill die with signal 11.
Does anyone either know what I am doing wrong or can tell me how to get
around this bug?
Thanks,
Frank
On Saturday, June 30, 2001, at 09:50 AM, Frank Cobia wrote:
I am using a NSBrowser to display a list of options in a Java Cocoa
application. I have buttons to add to and delete from the list. My
problem is when deleting values from the list. It works fine until I
try to delete the next to last item in the list. When I delete the next
to last item I tell the browser to select the item at row 0 by sending
"browser.selectRowInColumn(0, 0)". However, even though the code
"broser.selectedRowInColumn(0)" returns "0", the first row is not
highlighted on the screen. Is this a bug or am I doing something wrong.
Thanks,
Frank
_______________________________________________
cocoa-dev mailing list
email@hidden
http://www.lists.apple.com/mailman/listinfo/cocoa-dev