Re: NSCell editing weirdness
Re: NSCell editing weirdness
- Subject: Re: NSCell editing weirdness
- From: Philip Dow <email@hidden>
- Date: Tue, 3 Oct 2006 23:09:21 +0200
I've found that the selectWithFrame equivalent is often called when
the editWithFrame is what you'd expect. Try overriding that method
instead. You can accomplish the same function with it.
-Phil
On Oct 3, 2006, at 9:22 PM, David Aames wrote:
Hi all,
I've subclasses NSTextFieldCell to experiment implementing
editWithFrame but the method never gets called! Here's the code
which I'm using to set the cell up:
NSCell* c = [[DACell alloc] initTextCell:@""];
[c setEditable:YES];
[[[table tableColumns] objectAtIndex:0] setDataCell:c];
and i've overridden editWithFrame like this
- (void)editWithFrame:(NSRect)aRect inView:(NSView *)controlView
editor:(NSText *)textObj delegate:(id)anObject event:(NSEvent *)
theEvent {
NSLog(@"editing");
[super editWithFrame:aRect inView:controlView editor:textObj
delegate:anObject event:theEvent];
}
but it never gets called. Hmmm what am I doing wrong?
Regards,
David
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden