• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSBrowser with checkboxes?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: NSBrowser with checkboxes?
      • From: Ron Fleckner <email@hidden>
References: 
 >NSBrowser with checkboxes? (From: Dave Camp <email@hidden>)
 >Re: NSBrowser with checkboxes? (From: Ron Fleckner <email@hidden>)

  • Prev by Date: Re: How to get a project's First Responder?
  • Next by Date: Re: Crash Log with no Relation to where it Crashed
  • Previous by thread: Re: NSBrowser with checkboxes?
  • Next by thread: Re: NSBrowser with checkboxes?
  • Index(es):
    • Date
    • Thread