Skip navigation.
 
mlRe: how do I disable cell editing in NSTableView?
FROM : Hasan Diwan
DATE : Mon Nov 18 02:25:20 2002

Alex:
   Try implementing:
- (BOOL) tableView:(NSTableView *)t shouldSelectRow:(int)rowIndex {
   return NO;
}
in your init method:
[t setDelegate:self];
all should be well...
On Sunday, November 17, 2002, at 11:44  AM, Alex Reynolds wrote:

> I have set up a table view delegate to a Document object.
>
> In my Document.h, I have:
>
> - (BOOL) tableView: (NSTableView *)shouldEditTableColumn:
> (int)rowIndex;
>
> In my Document.m, I have:
>
> - (BOOL) tableView: (NSTableView *)shouldEditTableColumn: (int)rowIndex
> {
>    return NO;
> }
>
> I thought this would disable cell editing, but I can still
> double-click on a cell and edit it.
>
> My other delegates are working, so I don't believe it is a problem
> related to whether the delegate outlet is working...
>
> Does someone know what other approach I can take to disable cell
> editing, using delegates?
>
> I also tried this method:
>
> - (BOOL) textShouldBeginEditing: (NSText *)textObject
>
> setting the return value to NO, but this did not work, either.
>
> Thanks in advance for any tips,
>
> Regards,
> Alex
> _______________________________________________
> cocoa-dev mailing list | <email_removed>
> Help/Unsubscribe/Archives:
> http://www.lists.apple.com/mailman/listinfo/cocoa-dev
> Do not post admin requests to the list. They will be ignored.
>

Hasan Diwan
OpenPGP KeyID: 0xBE42DCA6
Fingerprint: 1CB0 47E3 0A24 DAC1 DCCA  4225 F166 40C2 BE42 DCA6
http://www.cs.rpi.edu/~diwanh/gpg.key

[demime 0.98b removed an attachment of type application/pgp-signature which had a name of PGP.sig]
_______________________________________________
cocoa-dev mailing list | <email_removed>
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

Related mailsAuthorDate
mlFwd: how do I disable cell editing in NSTableView? Alex Reynolds Nov 17, 20:44
mlRe: how do I disable cell editing in NSTableView? ssudre2 Nov 17, 23:37
mlRe: how do I disable cell editing in NSTableView? Hasan Diwan Nov 18, 02:25