Re: Controls in NSBrowser
Re: Controls in NSBrowser
- Subject: Re: Controls in NSBrowser
- From: "John C. Randolph" <email@hidden>
- Date: Mon, 29 Nov 2004 08:51:33 -0800
On Nov 29, 2004, at 4:01 AM, Michael Heins wrote:
Could someone point me in the right direction here? I have an
NSBrowser which is currently using a custom NSBrowserCell to display
text and an image. In other words, each cell has two displayed parts
an icon image and text. I need to add a third component to each cell
-- a functioning button control. Is there some way to do this? What
are my options?
It can be done. You'll probably want to use a custom NSMatrix subclass
in your browser columns, and overide -mouseDown:. If the location hits
your button, send the button's action, otherwise do [super mouseDown:]
-jcr
John C. Randolph <email@hidden> (408) 974-8819
Sr. Cocoa Software Engineer,
Apple Worldwide Developer Relations
http://developer.apple.com/cocoa/index.html
_______________________________________________
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