Skip navigation.
 
mlRe: x-circle button in a listbox?
FROM : Big Feet
DATE : Fri Apr 22 22:13:24 2005

most excellent advice.. from one Matt to another.

listbox ew.. that must be leftover in my head that nefarious win32.

i'll try your first approach.

Thank you!
Matt

On 4/22/05, Matt Neuburg <<email_removed>> wrote:
> On Fri, 22 Apr 2005 12:27:38 -0600, Big Feet <<email_removed>> said:
> >Hi all-
> >  I'm trying to be extra stylee with my cocoa app...    I'm trying
> >to add a "circle with an x in it style close / dete button" to the
> >right of each item in my listbox.
>
> What is a "listbox" - is it an NSTableView? If so, then one easy approach
> would be to make one column of the table consist of buttons. You have
> control over how the button cell looks so you can make it appear as any
> image you like.
>
> If you would rather have the circle button appear in the very same cell of
> the NSTableView as your text, you can do that to; again, you have control
> over the NSCell being used, so you could devise your own cell that looks the
> way you want and use that. But this is a more complicated approach. If you
> want to go beyond that you can use an arbitrary NSView as the content of
> your table:
>
> <http://www.stepwise.com/Articles/Technical/2003-12-20.01.html>
>
> m.
>
> --
> matt neuburg, phd = <email_removed>, <http://www.tidbits.com/matt/>
> A fool + a tool + an autorelease pool = cool!
> AppleScript: the Definitive Guide
> <http://www.amazon.com/exec/obidos/ASIN/0596005571/somethingsbymatt>
>
>

Related mailsAuthorDate
mlx-circle button in a listbox? Big Feet Apr 22, 20:27
mlRe: x-circle button in a listbox? Matt Neuburg Apr 22, 21:18
mlRe: x-circle button in a listbox? Big Feet Apr 22, 22:13