• 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 strangeness?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTableView strangeness?


  • Subject: Re: NSTableView strangeness?
  • From: Mike Ferris <email@hidden>
  • Date: Thu, 12 Dec 2002 09:50:10 -0800

After loading the array from a file, do you call reloadData?

Mike


Begin forwarded message:

From: Hasan Diwan <email@hidden>
Date: Thu Dec 12, 2002 8:58:04 AM US/Pacific
To: email@hidden
Subject: NSTableView strangeness?

I have an NSTableView which I'm filling with records beyond its
visible length. If anArray is loaded from a file, the scrollbars aren't
active. If I insert an object somewhere in the tableView using [anArray
insertObject:atIndex:]; [tableView reloadData], they become active. The
dataSource is an NSMutableArray. The datasource methods are given below:

- (int)numberOfRowsInTableView:(NSTableView *)t {
return [anArray count];
}

- (id)tableView:(NSTableView *)t
objectValueForTableColumn:(NSTableColumn *)aTC row:(int)rowIndex {
id theRecord, theValue;
theRecord = [anArray objectAtIndex:rowIndex];
theValue = [theRecord objectForKey:[aTC identifier]];
return theValue;
}

Hasan Diwan
OpenPGP KeyID: 0xBE42DCA6
Fingerprint: 1CB0 47E3 0A24 DAC1 DCCA 4225 F166 40C2 BE42 DCA6
http://www.cs.rpi.edu/~diwanh/gpg.key

[demime 0.98b removed an attachment of type application/pgp-signature which had a name of PGP.sig]
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >NSTableView strangeness? (From: Hasan Diwan <email@hidden>)

  • Prev by Date: Re: Smooth animation
  • Next by Date: Re: Coding norms
  • Previous by thread: NSTableView strangeness?
  • Next by thread: Novice question about Interface builder
  • Index(es):
    • Date
    • Thread