Re: Really frustrated with NSButtonCell
Re: Really frustrated with NSButtonCell
- Subject: Re: Really frustrated with NSButtonCell
- From: Stéphane Sudre <email@hidden>
- Date: Fri, 28 Feb 2003 14:58:19 +0100
On Friday, February 28, 2003, at 12:54 PM, Chad Armstrong wrote:
I'm trying to create a one column table which has a NSButtonCell which
can display a switch button and a string of text. I even tried to
create a new class which contains the switch button and an NSString.
I've found some comments to check out the source code of OpenUp from
the softrack.stepwise.com site, but this always ends up with a
non-responding link.
Does someone have some working source code which displays how to get a
simple NSButtonCell to work in a table? This would look similar to
the Song Name column in iTunes, except my app would have only one
column. I also want the ability to change the name of the string and
change the switch button, just like in iTunes.
To add a new item, there is a text field where the string is added,
and then the string is added with the switch button not selected.
A NSButtonCell title can not be edited in a NSTableView AFAIK.
Either you go with 2 columns or you subclass NSButtonCell to make its
title editable.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.