Re: NSTableView editing
Re: NSTableView editing
- Subject: Re: NSTableView editing
- From: Ryan Britton <email@hidden>
- Date: Mon, 25 Jul 2005 13:02:23 -0700
That will be called before it starts to edit any cell, regardless of
whether it's a text field cell or not. You'll probably need to check
the table column it provides to make sure it's the right column you
want though.
Another option you can use is to subclass NSTextFieldCell and
override this method:
- (void)editWithFrame:(NSRect)aRect inView:(NSView *)controlView
editor:(NSText *)textObj delegate:(id)anObject event:(NSEvent *)theEvent
Just mark that you're editing and call super's version.
On Jul 25, 2005, at 12:46 PM, Devon E Bowen wrote:
Try this NSTableView delegate method:
- (BOOL)tableView:(NSTableView *)aTableView shouldEditTableColumn:
(NSTableColumn *)aTableColumn row:(int)rowIndex
I saw that but it made me nervous. Is it safe to assume that this
is only called before it really starts to edit a text field? If
the system ever calls it and then decides not to enter an edit for
some reason, my assumption about the state of the table would
be incorrect. I guess I'm just nervous about using features that
aren't intended for what I need to do.
Devon
_______________________________________________
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