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

NSTableView Issue


  • Subject: NSTableView Issue
  • From: Chris <email@hidden>
  • Date: Thu, 13 Nov 2008 00:14:44 -0800

Hello,

This is an issue I've been stuck on for a while, I'm trying to load an instance of NSHTTPCookieStorage into a table view. I have it far enough so that when I build the app and load it, it displays this http://i38.tinypic.com/315en3c.png . However when I attempt to scroll up or down, the app does nothing and I receive these error message in the console:

*** -[NSCFArray objectAtIndex:]: index (2) beyond bounds (2)

and

[<NSBundle 0x1fa780> valueForUndefinedKey:]: this class is not key value coding-compliant for the key name.

Here are my two table methods for reference:

- (int)numberOfRowsInTableView:(NSTableView *)tableView
{
	return ([cookies count]);
}

- (id)tableView:(NSTableView *)tableView
objectValueForTableColumn:(NSTableColumn *)tableColumn
			row:(int)row
{

	NSHTTPCookie *cookie = [cookies objectAtIndex: row];
	NSString *identifier = [tableColumn identifier];
	return [cookie valueForKey: identifier];
}


Thank you, any guidance would be appreciated!

--Chris

_______________________________________________

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


  • Follow-Ups:
    • Re: NSTableView Issue
      • From: "I. Savant" <email@hidden>
  • Prev by Date: NSConnection/NSMachPort and CPU Loads.
  • Next by Date: Re: MyDocument's Window Outlet...
  • Previous by thread: Re: NSConnection/NSMachPort and CPU Loads.
  • Next by thread: Re: NSTableView Issue
  • Index(es):
    • Date
    • Thread