• 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: Robert Tillyard <email@hidden>
  • Date: Tue, 28 Aug 2007 23:24:47 +0100


On 28 Aug 2007, at 22:03, Shawn Erickson wrote:

On 8/28/07, Robert Tillyard <email@hidden> wrote:

On 28 Aug 2007, at 16:20, Shawn Erickson wrote:

You can do this in Interface Builder by dragging a button cell into
the column.

-Shawn

That;'s how I got a column of NSButtonCells in an NSOutlineView and I return NSOnState or NSOffState as an NSNumber to put a tick in the button.

My problem is that I don't want tick boxes on rows with the
disclosure triangle. What do I return to hide the button on those? I
tried 'nil' but that didn't work.

Consider outlineViewWillDisplayCell:forTableColumn:item:

-Shawn

Thank you, that works perfectly.

I had inadvertently used outlineViewWillDisplayOutlineCell:forTableColumn:item in which [tableColumn identifier] always returned nil.

Thanks for your help.

Regards, Rob.
_______________________________________________

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


References: 
 >NSOutlineView change a textfield for an NSButton (switch) (From: "Yvon Thoraval" <email@hidden>)
 >Re: NSOutlineView change a textfield for an NSButton (switch) (From: Boris Remizov <email@hidden>)
 >Re: NSOutlineView change a textfield for an NSButton (switch) (From: "Shawn Erickson" <email@hidden>)
 >Re: NSOutlineView change a textfield for an NSButton (switch) (From: Robert Tillyard <email@hidden>)
 >Re: NSOutlineView change a textfield for an NSButton (switch) (From: "Shawn Erickson" <email@hidden>)

  • Prev by Date: Re: NSScrollerView Problem
  • Next by Date: Blurry view from cacheDispalyInRect:toBitmapImageRep:
  • Previous by thread: Re: NSOutlineView change a textfield for an NSButton (switch)
  • Next by thread: Buttons next to NSScroller
  • Index(es):
    • Date
    • Thread