• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
How to display the information in the columns of the table view?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to display the information in the columns of the table view?


  • Subject: How to display the information in the columns of the table view?
  • From: Bright <email@hidden>
  • Date: Sat, 25 Jul 2009 21:56:09 +0800 (CST)

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

Attachment: Audio player.zip
Description: Binary data

_______________________________________________

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

  • Follow-Ups:
    • Re:Re: How to display the information in the columns of the table view?
      • From: Bright <email@hidden>
    • Re: How to display the information in the columns of the table view?
      • From: Alexander Spohr <email@hidden>
    • Re: How to display the information in the columns of the table view?
      • From: Bright <email@hidden>
    • Re: How to display the information in the columns of the table view?
      • From: Graham Cox <email@hidden>
  • Prev by Date: When is an NSTextField editor created?
  • Next by Date: Re: mouse entered/exited in nscollectionviewitem's view
  • Previous by thread: Re: When is an NSTextField editor created?
  • Next by thread: Re: How to display the information in the columns of the table view?
  • Index(es):
    • Date
    • Thread