NSTextFieldCell derivate and editing (editWithFrame)
NSTextFieldCell derivate and editing (editWithFrame)
- Subject: NSTextFieldCell derivate and editing (editWithFrame)
- From: Michael Tyson <email@hidden>
- Date: Tue, 17 Jul 2007 18:17:01 +1000
Hi!
I've made a combined image/text/subtitle/emblem cell for use in an
NSOutlineView. I made an IB palette for it, and added it to the
outline view in IB. Editable is set in the relevant places, and I
have a data source which returns YES in shouldEditTableColumn; it
also has a setObjectValue method.
When I double-click on an item in the list to begin editing it,
nothing happens; I have a function
- (void)editWithFrame:(NSRect) aRect inView:(NSView *) controlView
editor:(NSText *) textObj delegate:(id) anObject event:(NSEvent *)
theEvent;
Within which I've put a breakpoint. It never gets called!
selectWithFrame: seems to get called on double-click, but it never
appears to reach editWithFrame.
Is there something I'm missing? How do I get an editable cell?
Thanks!
Mike
--
Michael Tyson | michael.tyson.id.au
m: (+61) 0407 754 124
e: email@hidden
aim: mikerusselltyson
_______________________________________________
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