Compile as debug.
Run and look at the console in Xcode.
Try
[tableRecordsArray addObject:infoDictionary]
instead of
[tableRecordsArray insertObject:infoDictionary atIndex:row+i];
Tell us what tableRecordsArray is and how you allocate it.
atze
ps. signing what Graham Cox said.
Am 25.07.2009 um 15:56 schrieb Bright:
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.
Bright<Audio
player.zip>_______________________________________________
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
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:
http://lists.apple.com/mailman/options/cocoa-dev/atze%40freeport.de
This email sent to a...@freeport.de
_______________________________________________
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to arch...@mail-archive.com