Re: cocoa-dev digest, Vol 2 #3316 - 2 msgs
Re: cocoa-dev digest, Vol 2 #3316 - 2 msgs
- Subject: Re: cocoa-dev digest, Vol 2 #3316 - 2 msgs
- From: Theodore Petrosky <email@hidden>
- Date: Sun, 7 Dec 2003 06:55:22 -0800 (PST)
April,
Is everything else working with the tableView? By that
I mean you are populating the tv with data, you can
alter the data both by selecting a cell in the table
and typing, or by creating a textField and altering
the datasource then reloading the data.
I can not tell by reading your message that everything
is working correctly.
After the tableView is working correctly, I would
attack the drag and drop. BTW, what are you trying to
drag and drop... an image, an eps... text
Ted
>
--__--__--
>
>
Message: 1
>
To: email@hidden
>
From: April Gendill <email@hidden>
>
Subject: tableviews
>
Date: Sat, 6 Dec 2003 22:35:53 -0700
>
>
I give up...
>
I have reached a point where I think I need to
>
accept that I will never
>
make a working table view.
>
I am writing an app with a tableview. the array that
>
feeds it is an
>
array of 3 item dictionaries. Now the table always
>
starts empty.
>
So if I try and drag and drop something to it, I get
>
an error that I am
>
trying to insert something beyond bounds. the row is
>
always -1 which
>
obviously it cannot be. First off, why is my table
>
the only one on the
>
planet that does this?
>
second I'm not using drop above or below or on I'm
>
using just a generic
>
drop. So I cannot Put anything on the table without
>
futzing with the
>
rows. If I set the destination row to be row+1 then
>
it allows the drop.
>
This gets better
>
once I actually get data into the table, I cannot
>
move it to save my
>
life. If I log what i'm clicking and where it's
>
destination is, the
>
information is all correct. The problem is that when
>
I move it I get a
>
sigbus 10 OR nothing happens at all in the view, but
>
the array that
>
holds the data is shifted. OR the item I move
>
replaces what I move it
>
above. If I move it to the bottom, sigbus 10. Or I
>
end up with a table
>
filled with only a single value, and of course it
>
wipes out the array
>
also.
>
>
I have read the docs, books and messed with the
>
examples until my head
>
hurts. I have spent more than 2 months on and off
>
trying to get this to
>
work and basically have wasted the time since I am
>
no better off than I
>
was when I started. Please don't tell me to RTFM
>
because if the FM had
>
the answer or if I understood it, then I would not
>
need to write the
>
list.
>
>
The table has three columns, only 2 of which have I
>
ever been able to
>
get data to appear in. But that is the least of my
>
concerns right now.
>
I would really like to be able to move items in the
>
view and have it
>
match the array. If some one can help explain this,
>
or at least look at
>
my code and tell me what I'm doing wrong, I would
>
really appreciate it.
>
>
April.
>
>
P.S. By the way, does XCode suck this bad or Do I
>
need to wipe the
>
drive and reinstall Panther? It seems to crash every
>
time I take a deep
>
breath.
>
__________________________________
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing.
http://photos.yahoo.com/
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.