• 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: Setting double action from NSCell
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Setting double action from NSCell


  • Subject: Re: Setting double action from NSCell
  • From: Hamish Allan <email@hidden>
  • Date: Mon, 14 Nov 2005 11:58:48 +0000


On Fri, 11 Nov 2005 15:21:58 -0800 (PST), Ian was here <email@hidden> wrote:


I have an NSOutlineView with a single column. Each
type of cell must react to a double click in it's own
way. I would like to have a specific row or cell being double
clicked call an action method, but all other cells can
have their text edited from a double click (which is
default behaviour).

Use NSOutlineView's -setTarget: and -setDoubleAction: methods to specify a method to be called when the user double-clicks on an uneditable cell. Use NSCell's -setCellAttribute:NSCellEditable to:NO (or override -isEditable) to make the appropriate cell type uneditable.


Best wishes,
Hamish

Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: xcode 2.2 coredata accessors
  • Next by Date: awakeFromInsert is not called
  • Previous by thread: Setting double action from NSCell
  • Next by thread: NSTableView and dragging cursor
  • Index(es):
    • Date
    • Thread