• 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
NSTableView + setObjectValue + NSCell
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSTableView + setObjectValue + NSCell


  • Subject: NSTableView + setObjectValue + NSCell
  • From: Jean-François Brouillet <email@hidden>
  • Date: Sat, 25 Mar 2006 11:55:31 +0000

Hi.

I created an NSTableView and specified that the contents of each
of its NSTableColumn should hold instances of NSTextField. All
of this within IB.

I've set-up all the links everywhere (delegate + dataSource) the
upshot being that my controller method

- (void)
    tableView:      (NSTableView *)     table
    setObjectValue: (id)                objectValue
    forTableColumn: (NSTableColumn *)   col
    row:            (int)               row ;

is called.

If I do:

            NSCell * cell = (NSCell *) [col dataCell] ;

I'm expecting cell to be an NSTextField instance.

My question is this:

At the time I am asked to change the contents of that specific
cell what difference should I be expecting to observe between

[cell stringValue]

and

[objectValue stringValue]

The reason I'm asking is because I'm getting a few "can't understand selector"
messages, and I'm slowly narrowing down the possible causes.


Many Thanks
--
JFB
_______________________________________________
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 + setObjectValue + NSCell
      • From: Corbin Dunn <email@hidden>
  • Prev by Date: 1.0 divided by 10 = 0.10000000000000001?
  • Next by Date: Click on NSActionCell
  • Previous by thread: Re: 1.0 divided by 10 = 0.10000000000000001?
  • Next by thread: Re: NSTableView + setObjectValue + NSCell
  • Index(es):
    • Date
    • Thread