Re: x-circle button in a listbox?
Re: x-circle button in a listbox?
- Subject: Re: x-circle button in a listbox?
- From: Matt Neuburg <email@hidden>
- Date: Fri, 22 Apr 2005 12:18:18 -0700
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