Re: How to display the information in the columns of the table view?
Re: How to display the information in the columns of the table view?
- Subject: Re: How to display the information in the columns of the table view?
- From: Graham Cox <email@hidden>
- Date: Mon, 27 Jul 2009 15:35:19 +1000
On 25/07/2009, at 11:56 PM, Bright wrote:
Hi all,
In my application, I want to drag the file into the table view.
At the same time, display the basic information in the columns of
the table view.
Now, I got the basic information of the file and saved it in a
NSDictionary object. The code is : theInfoDictionary
=[NSDictionarydictionaryWithObjectsAndKeys:[filePath
lastPathComponent], @"name",[filePath pathExtension], @"extension",
modDate, @"modifiedDate",nil];
In the "- (BOOL)tableView: acceptDrop: row: dropOperation:" method,
I tried to insert the information Dictionary into the Array use the
code "[tableRecordsArray insertObject:infoDictionary atIndex:row+i];".
But when I drop the file into the table view, the app exited
immediately. But I do not know how to realize it.
Note: The enclosure is the code of this application. I wish
someone can find out the bug and amend it for me. Thank you.
Any help greatly appreciated.
You asked the same question less than 24 hours ago. If you didn't get
an answer, it's probably because nobody knows, didn't understand the
question or couldn't be bothered to help.
I'm inclined to go with the last one because the question is ill-
framed, contains no information that can help find the problem, no
relevant code, and doesn't state what you've tried. This isn't
debuggers anonymous - if you can't be bothered to help yourself why
would anyone else feel obliged? Sorry to sound so harsh but I'm in a
spiky mood today and your post got under my skin...
I will debug your code for you at my standard going consultation rate,
which is around $100 per hour plus loss of earnings on anything else I
have to drop to do it. Shouldn't take more than a few hours. OK with
you?
--Graham
P.S. Your attachment was a 4.5MB download. That's pretty unfriendly to
have thrown into my email inbox unsolicited at my own expense in terms
of bandwidth.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden