Leopard NSTableView Cell and single click editing
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