• 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: can't set double action in NSOutlineView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: can't set double action in NSOutlineView


  • Subject: Re: can't set double action in NSOutlineView
  • From: p3consulting <email@hidden>
  • Date: Fri, 14 Mar 2003 15:39:27 +0100

> FROM: Donald Hall
> DATE: 2003-03-14 08:25
>
> Hi all,
>
> I am trying to set the double click action in an NSOutlineView, but
> it's not working. Double clicking an item in my outline view still
> causes the default behavior of making the text editable to happen. In
> my windowControllerDidLoadNib: method I have the following lines:
>
>

In IB you have to turn turn off the editable flag for the column cell.

As stated in the doc:

setDoubleAction:

- (void)setDoubleAction:(SEL)aSelector

Sets the message sent to the target when the user double-clicks an
uneditable cell or a column header to aSelector. If the double-clicked
cell is editable, this message isn't sent and the cell is edited
instead. You can use this method to implement features such as sorting
records according to the column that was double-clicked.

See Also: - setAction: (NSControl), - setTarget: (NSControl), -
doubleAction


email@hidden
_______________________________________________
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.

  • Prev by Date: Programmatic equivalent to @protocol() macro?
  • Next by Date: Re: Help with crash
  • Previous by thread: can't set double action in NSOutlineView
  • Next by thread: anoncvs.opensource.apple.com CVS server dead?
  • Index(es):
    • Date
    • Thread