Re: x-circle button in a listbox?
Re: x-circle button in a listbox?
- Subject: Re: x-circle button in a listbox?
- From: Big Feet <email@hidden>
- Date: Fri, 22 Apr 2005 14:13:24 -0600
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@hidden> wrote:
> On Fri, 22 Apr 2005 12:27:38 -0600, Big Feet <email@hidden> 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@hidden, <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>
>
>
_______________________________________________
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