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

Leopard NSTableView Cell and single click editing


  • Subject: Leopard NSTableView Cell and single click editing
  • From: Manfred Schwind <email@hidden>
  • Date: Mon, 26 Nov 2007 16:00:45 +0100

Hi,

as we can read here, Leopard introduced "single click editing" in NSTableViews:

http://developer.apple.com/releasenotes/Cocoa/AppKit.html#NSTableView

My problem is:
I have a custom NSTextFieldCell in my tableview that has additional elements (e.g. icons that can appear depending on some state). Now I don't want to enter edit mode when clicking on those additional elements! (It's ok when clicking on the text; but no must-have.)
I saw that there is a new method that should solve this:


- (NSUInteger)hitTestForEvent:(NSEvent *)event inRect: (NSRect)cellFrame ofView:(NSView *)controlView

Problem is: it is not called! It seems to depend on the SDK I link to; not the system where to app runs on (why?). For various reasons I can not link against the 10.5 SDK, nor can I use Xcode 3. I am using Xcode 2.5 and using 10.4u SDK. I implemented the above method (having to define NSUInteger, but that's not a big problem) in my NSTextFieldCell subclass, but it never gets called.

Any ideas how to solve that? Or can the single click editing generally be turned off somehow?

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: j o a r <email@hidden>
  • Prev by Date: Re: Multiple applications, one NSUserDefaults object?
  • Next by Date: "Make This My Card" tag/switch via Contacts.syncschema ?
  • Previous by thread: New Podcast for Mac Developers
  • Next by thread: Re: Leopard NSTableView Cell and single click editing
  • Index(es):
    • Date
    • Thread