• 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
NSTableColumn loses 'value' binding when data cell set to NSButtonCell?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSTableColumn loses 'value' binding when data cell set to NSButtonCell?


  • Subject: NSTableColumn loses 'value' binding when data cell set to NSButtonCell?
  • From: John McLaughlin <email@hidden>
  • Date: Tue, 18 Aug 2009 23:50:45 -0700

Hi All,
I've got an app that I'm creating NSTableColumn's on the fly and binding
them to an array controller.  It all works fine but tonight I needed to
change one of the columns to have a NSButtonCell.

NSButtonCell *cell=[[[NSButtonCell alloc]init]autorelease];

 [tc setDataCell:cell];

(tc is the table column) -- The problem is I lose the 'value' binding (I
want to bind the button cell title to the array controller).  Previously I
was able to bind the table column to the controller thusly:

 [tc bind:@"value"

toObject:siteLayoutController

 withKeyPath:[NSString stringWithFormat:@"arrangedObjects.%@",item]

 options:nil];


But after I set the data cell to a NSButtonCell it loses the 'value' binding
-- The bindings left are not terribly interesting:


  *po [tc exposedBindings]*

Previous frame inner to this frame (gdb could not unwind past this frame)

<NSCFArray 0x1eab6fe0>(

target,

argument,

width,

font,

fontSize,

fontFamilyName,

enabled,

editable,

minWidth,

fontBold,

headerTitle,

fontName,

maxWidth,

fontItalic

)

I'm just about going crazy here -- is it possible to bind a NSButtonCell
title?


-John
_______________________________________________

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

  • Prev by Date: Re: Syncronizing class files and Core Data entities
  • Next by Date: Re: Get size of folder
  • Previous by thread: Re: Get size of folder
  • Next by thread: Core Data dog-slow when using first time after boot
  • Index(es):
    • Date
    • Thread