Re: NSTableView delete button
site_archiver@lists.apple.com Delivered-To: cocoa-dev@lists.apple.com On 29-Dec-06, at 19:03 PM, Keith Duncan wrote: - Keith Cheers, Patrick _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/site_archiver%40lists.apple... I mean my idea of a per row delete button. I prototyped the interface to include a delete button but it threw it off. Having it per row makes a lot more sense and it keeps the UI clean. I actually agree with Scott and John, but for the sake of argument, this is how I would do it. I guess that your problem is that you want to know in which row the clicked button is situated. So connect a normal IBAction to your button and in that method get the coordinates of the sender (or of the mouse). Then use NSTableView's -rowAtPoint: to get which row you want. You can then remove the appropriate object from the array. This email sent to site_archiver@lists.apple.com
participants (1)
-
PGM