• 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: Leopard NSTableView Cell and single click editing
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Leopard NSTableView Cell and single click editing


  • Subject: Re: Leopard NSTableView Cell and single click editing
  • From: Manfred Schwind <email@hidden>
  • Date: Thu, 29 Nov 2007 12:37:12 +0100

So, there is no way to know that the method is correctly implemented for a given cell subclass just by it checking if it is present (since it is always present). Because of that, we have to check for the app to be linked against Leopard.

OK, I see, that makes sense.

Mani, in regard to your original problem -- how did you limit an editing session on Tiger?

If I remember correct, I overwrote the trackMouse:... routine of the cell. If the user clicks on the special area of my NSTextFieldCell subclass, I am doing something else. But the single click editing seems to happen at another level (most probably in the NSTableView mouseDown code, I think).


But I was able to solve my problem. I found a way to disable the single click editing on Leopard, so the app behaves exactly like on Tiger. (I did not find a solution to get the desired behaviour plus single click editing on Leopard. But that's not so critical in my case and I spent no more time into that.)

Side note: there is a way to disable the single-click editing behavior

There is: I just always return NO in the tableview delegate method tableView:shouldEditTableColumn:row:.
I still can start an editing session programmatically (editColumn:...), if I want to. In my case editing is only available through a contextual menu. Double clicking is overwritten with another action that makes more sense in my app (but I think it must be possible to start an editing session here if I would have wanted that, too).


Regards,
Mani
--
http://www.mani.de
iVolume - Loudness adjustment for iTunes.
LittleSecrets - The encrypted notepad.


_______________________________________________

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: Leopard NSTableView Cell and single click editing
      • From: Corbin Dunn <email@hidden>
References: 
 >Leopard NSTableView Cell and single click editing (From: Manfred Schwind <email@hidden>)
 >Re: Leopard NSTableView Cell and single click editing (From: j o a r <email@hidden>)
 >Re: Leopard NSTableView Cell and single click editing (From: Stephane Sudre <email@hidden>)
 >Re: Leopard NSTableView Cell and single click editing (From: Corbin Dunn <email@hidden>)

  • Prev by Date: How to enable/disable the menu items Font > Bold/Italic on Leopard?
  • Next by Date: Re: [OT] Chown returns file lock error
  • Previous by thread: Re: Leopard NSTableView Cell and single click editing
  • Next by thread: Re: Leopard NSTableView Cell and single click editing
  • Index(es):
    • Date
    • Thread