FROM : Matt Neuburg
DATE : Fri Apr 22 21:18:18 2005
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>
DATE : Fri Apr 22 21:18:18 2005
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 mails | Author | Date |
|---|---|---|
| Big Feet | Apr 22, 20:27 | |
| Matt Neuburg | Apr 22, 21:18 | |
| Big Feet | Apr 22, 22:13 |






Cocoa mail archive

