Buttons with images in NSTableView
Buttons with images in NSTableView
- Subject: Buttons with images in NSTableView
- From: email@hidden
- Date: Mon, 22 Nov 2004 10:25:54 +0000
Hi
I have an NSTableView showing information about retailers, a row for each retailer. One column shows the retailer's logo and I want it to be a push button that the user can click to go to the retailer's website.
I can use an NSButtonCell for this, but can see no way to set different images for each row. Alternatively I can use an NSImageCell and then can set different images but can't set an action method on the imageCell.
I've resorted to using the NSTableView's tableViewSelectionDidChange: method and going to the website there, but even this is not ideal as I can see no way to work out whether the user clicked the logo or another column. I guess I could get the cursor position and see if that's in the imageCell.
Surely I'm being daft - there must be an easy way to accomplish this! Any ideas?
Thanks
Duncan
_______________________________________________
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