• 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: NSTableView & different columns
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTableView & different columns


  • Subject: Re: NSTableView & different columns
  • From: Sanri Parov <email@hidden>
  • Date: Mon, 4 Jul 2005 22:07:25 +0200

On Sat, 02 Jul 2005 21:19:02 -0400, Dave Hersey wrote:

[super cut]

> I was shying away from the checkbox example because it's a more complicated
> example, but I'll get to that in a second. Here's a simpler example first.

Thanks Dave, your help is greately appreciated, but you went too far
for my needs :-))
I've understood (I think) almost at 90% what you said, but I think in
perfect Occam style that the simplest way to do things is  probably the
most correct one.
As far as I've set the checkbox straight in Interface Builder, the
easiest thing to overcome is just to understand  which cell to modify
when

- (id)tableView:(NSTableView *)aTableView
objectValueForTableColumn:(NSTableColumn *)aTableColumn
row:(int)rowIndex

does its routine. I just want it to set on "checked" status.
Probably what I need is something like this inside the above method:

if ([[NSFileManager defaultManager] fileExistsAtPath:path])
	{
	    id cell;
	    cell = [aTableColumn dataCellForRow:rowIndex];
	    [cell setState:NSOnState];
	}

The problem is that the cell doesn't change its appearance.
Does anyone know why?

Thanks again to everybody.



--
Sanri Parov
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: NSTableView & different columns
      • From: mmalcolm crawford <email@hidden>
References: 
 >Re: NSTableView & different columns (From: Dave Hersey <email@hidden>)

  • Prev by Date: Re: Reading data from an NSTask
  • Next by Date: Re: NSTableView & different columns
  • Previous by thread: Re: NSTableView & different columns
  • Next by thread: Re: NSTableView & different columns
  • Index(es):
    • Date
    • Thread