• 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
Re: creating an NSTableColumn
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: creating an NSTableColumn


  • Subject: Re: creating an NSTableColumn
  • From: j o a r <email@hidden>
  • Date: Fri, 16 Jul 2004 17:17:05 +0200

On 2004-07-16, at 17.04, John Spicer wrote:

> This seems silly, and perhaps I'm doing this backwards, but I want the
> user to be able to duplicate a row, i.e. they select a row, hit
> duplicate, and it's added at the bottom of the table.
>
> Seemed the way was to find the row selected, and then read the value
> in the cell for each column and then create the new object, add it to
> the dictionary, and reload the table.

Never think about "reading the value from the cell". The cell doesn't
hold the value, your data source does. What you should do is tell the
data source to duplicate the object at some specific row index.

> However, I can't figure out how to create the NSTableView from just
> knowing the name. Does anyone know how?

Now I'm confused... The subject of this message is about creating table
columns, the message body seems to be about duplicating rows, and now
you talk about creating a table view?

j o a r

[demime 0.98b removed an attachment of type application/pkcs7-signature which had a name of smime.p7s]
_______________________________________________
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.


References: 
 >creating an NSTableColumn (From: John Spicer <email@hidden>)

  • Prev by Date: getting a cell value [was: creating an NSTableColumn}
  • Next by Date: Re: Changing Cell Size in at TableView?
  • Previous by thread: creating an NSTableColumn
  • Next by thread: Re: creating an NSTableColumn
  • Index(es):
    • Date
    • Thread