Re: Disabling an NSTableView
Re: Disabling an NSTableView
- Subject: Re: Disabling an NSTableView
- From: Ryan Bates <email@hidden>
- Date: Tue, 17 Feb 2004 16:30:06 -0800
You can disable selection by always returning NO for the
"tableView:shouldSelectRow:" and "tableView:shouldSelectTableColumn:"
delegate methods. What else do you need disabled? If you want to
completely block mouse down events you could subclass the table and not
pass the "mouseDown:" method to the superclass. I don't know if this is
the best way to go about it though.
Ryan
On Feb 17, 2004, at 2:17 PM, Moray Taylor wrote:
Hi,
I've got two scroll-synchronized NSTableViews (many thanks to Ryan
Bates for his assistance in doing this). Since one of the NSTableViews
is just for cosmetic purposes, I want to make it 'disabled', i.e. so
the user can't click, drag, or anything else. I can turnoff a lot of
functionality in IB, but I want to turn off everything, like Row
selection etc.., is there anyway to do this?
Thanks v much
Moray
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.