• 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: Dave Hersey <email@hidden>
  • Date: Sun, 03 Jul 2005 18:07:57 -0400

On 7/3/05 5:52 PM, "Sanri Parov" <email@hidden> wrote:

> On Sat, 2 Jul 2005 16:58:57 -0700, mmalcolm crawford wrote:
>> It's up to you what you return in ... objectValueForTableColumn ...
>>
>> - (id) tableView: (NSTableView *) tableView
>>     objectValueForTableColumn: (NSTableColumn *) tableColumn
>>     row: (int) rowIndex
>> {
>>
>> if ([[tableColumn identifier] isEqualToString:@"rowNumber"])
>> {
>>     return [NSNumber numberWithInt:rowIndex];
>> }
>>
>> // implementation continues...
>
> I've already tried to do this.
> The app crashes with a SIGBUS 10 :-((

That should definitely work if you're using a regular text cell column like
InterfaceBuilder makes, with a column identifier called rowNumber. Are you
sure you have the @ in there? Step through it and see where it's crashing.

- Dave

 _______________________________________________
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

References: 
 >Re: NSTableView & different columns (From: Sanri Parov <email@hidden>)

  • Prev by Date: Re: NSTableView & different columns
  • Next by Date: Re: NSMetadataQuery not handling scopes and predicates as expected
  • Previous by thread: Re: NSTableView & different columns
  • Next by thread: Re: NSTableView & different columns
  • Index(es):
    • Date
    • Thread