Re: Unique copy/paste behavior based on tableview
Kyle Sluder <[email protected]>
| Newsgroups | gmane.comp.macosx.devel |
|---|---|
| Message-ID | <[email protected]> |
On Thu, Dec 31, 2009 at 11:35 PM, earl.deshazer <[email protected]> wrote: > the examples assume that a copy is only possible from the employeeTableController. The capability of duplicating a manager MO and/or an employe MO is ignored. I have a scenario, however, which would require the copy action to discern which tableView/MO was selected to determine which MO (and its associated data) to copy. The paste action would similarly need to be aware of what tableView was selected to determine the appropriate coarse of action. Sounds like you need to subclass NSTableView and override -copy: and -paste:. You might want to only do this once, and extend either the data source or delegate protocol so that object can be responsible for the custom logic. --Kyle Sluder