Re: NSCell editing weirdness
Re: NSCell editing weirdness
- Subject: Re: NSCell editing weirdness
- From: David Aames <email@hidden>
- Date: Tue, 3 Oct 2006 23:05:41 +0100
I've also overridden the selectWithFrame: too but still it isn't
called. TBH I'm just fed up and I have no ideas what to do...
Regards,
David
On 3 Oct 2006, at 22:09, Philip Dow wrote:
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