Re: NSOutlineView change a textfield for an NSButton (switch)
Re: NSOutlineView change a textfield for an NSButton (switch)
- Subject: Re: NSOutlineView change a textfield for an NSButton (switch)
- From: "Shawn Erickson" <email@hidden>
- Date: Tue, 28 Aug 2007 08:20:32 -0700
On 8/28/07, Boris Remizov <email@hidden> wrote:
> You may do something like this:
>
> NSTableColumn* tableColumn;
> NSButtonCell* buttonCell;
>
> tableColumn = [[outlineView tableColumns] objectAtIndex:
> buttonColumnIndex];
>
> buttonCell = [[NSButtonCell alloc] init];
>
> [tableColumn setDataCell: buttonCell];
>
> [buttonCell release];
You can do this in Interface Builder by dragging a button cell into the column.
-Shawn
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden