Re: NSBrowser with checkboxes?
Re: NSBrowser with checkboxes?
- Subject: Re: NSBrowser with checkboxes?
- From: Dave Camp <email@hidden>
- Date: Wed, 12 Dec 2007 19:36:43 -0800
On Dec 12, 2007, at 7:02 PM, Ron Fleckner wrote:
On 13/12/2007, at 8:33 AM, Dave Camp wrote:
I need to create an NSBorwser where each cell also has a checkbox,
in addition to the normal image and text. I've checked the list
archives and circa 2004 the answer was to subclass NSBrowserCell
and subclass the NSMatrix the browser uses to intercept the click
and route it to the checkbox.
Is this still the recommended implementation, or is there an easier
way to do this now?
Thanks,
Dave
Hi Dave,
I haven't actually run this, but it does set up a switch button
(checkbox) in a table cell when I build and run. I used this method
to add a circular push button. This is taken from an example by
Joar Wingfors.
Is that for an NSTableView or an NSBrowser? NSBrowser seems to reject
any cells that aren't decendents of NSBrowserCell. I'm working on a
subclass of NSBrowserCell that also has a member NSButtonCell but I
don't think I've overridden enough mouse tracking methods yet. Back to
the grindstone...
Dave
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please 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:
This email sent to email@hidden