• 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: Bindings & Checkbox in NSTableView [SOLVED]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bindings & Checkbox in NSTableView [SOLVED]


  • Subject: Re: Bindings & Checkbox in NSTableView [SOLVED]
  • From: Steven Huey <email@hidden>
  • Date: Wed, 7 May 2008 07:35:27 -0400

Hamish,

Thanks, it works using the Check Box Cell from the IB Library.

It seems the approach to setting the data cell I was using was the recommended one based on searching the archives, does anyone have an idea why it wasn't working?

Thanks,
Steve

On May 6, 2008, at 4:17 PM, Hamish Allan wrote:

On Tue, May 6, 2008 at 8:31 PM, Steven Huey <email@hidden > wrote:

I set the table column to use a checkbox using:

   NSButtonCell *cell = [[NSButtonCell alloc] init];
   [cell setButtonType:NSSwitchButton];
   [cell setImagePosition:NSImageOnly];
   [cell setControlSize:NSSmallControlSize];
   [[myTable tableColumnWithIdentifier:@"active"] setDataCell:cell];

Before further examining why your existing approach is failing, you might first of all try setting up the table column to use a checkbox in Interface Builder rather than in code (drag a check box cell from the palette over the existing text cell of the table column).

Hamish

-- Steven Huey Software - http://www.stevenhuey.com




_______________________________________________

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: 
 >Bindings & Checkbox in NSTableView (From: Steven Huey <email@hidden>)
 >Re: Bindings & Checkbox in NSTableView (From: "Hamish Allan" <email@hidden>)

  • Prev by Date: Re: WebView does not expose bindings in IB 3
  • Next by Date: re-read of partition table / diskarbitration probe
  • Previous by thread: Re: Bindings & Checkbox in NSTableView
  • Next by thread: bindings and mutliple NIBs
  • Index(es):
    • Date
    • Thread