• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSOutlineView change a textfield for an NSButton (switch)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSOutlineView change a textfield for an NSButton (switch)


  • Subject: Re: NSOutlineView change a textfield for an NSButton (switch)
  • From: Boris Remizov <email@hidden>
  • Date: Tue, 28 Aug 2007 13:29:38 +0400

You may do something like this:

		NSTableColumn* tableColumn;
		NSButtonCell* buttonCell;		

tableColumn = [[outlineView tableColumns] objectAtIndex: buttonColumnIndex];

		buttonCell  = [[NSButtonCell alloc] init];

		[tableColumn setDataCell: buttonCell];

		[buttonCell release];


On Aug 28, 2007, at 12:21 , Yvon Thoraval wrote:

i'm using an NSOutlineView and would like to change all the textfield in a
given column by NSButton (single switch on/off).


i suppose i have to replace (or delete?) the default textfield by an
NSButton ?

--
yvon

_______________________________________________

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


  • Follow-Ups:
    • Re: NSOutlineView change a textfield for an NSButton (switch)
      • From: "Shawn Erickson" <email@hidden>
References: 
 >NSOutlineView change a textfield for an NSButton (switch) (From: "Yvon Thoraval" <email@hidden>)

  • Prev by Date: NSOutlineView change a textfield for an NSButton (switch)
  • Next by Date: Re: NSTextView bound to NSColorWell?
  • Previous by thread: NSOutlineView change a textfield for an NSButton (switch)
  • Next by thread: Re: NSOutlineView change a textfield for an NSButton (switch)
  • Index(es):
    • Date
    • Thread