• 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 doesn't display it
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSTableView doesn't display it


  • Subject: NSTableView doesn't display it
  • From: mabo68 <email@hidden>
  • Date: Fri, 22 Dec 2006 11:48:53 +0100

Hi !

I have a NSTableView in a view.

This code fill the tableview :

	// I create and fill a new object to display
	MBClient *c = [[MBClient alloc] init];
	[c setUniqueId: @"12345"];
	[c setClient: @"clientName"];
	[c setClientDescription: @"clientDescription"];

	// I put the new created object into a new array
	NSArray *a = [[NSArray alloc] initWithObjects: c, nil];

	// I display the object
	[myClientTableViewController setSelectsInsertedObjects: NO];
	[ myClientTableViewController addObjects: a];
	[ myClientTableViewController setSelectsInsertedObjects: YES];
	[ myClientTableViewController reloadData];
	[c release];
	c = nil;
	[a release];
	a = nil;


The tree displayed column in the NSTableView are bind to myClientTableViewController who his Object Class Name is MBClient.


If I start the program with my user (Administrator), I have no problem, no error ans I get the values displayed in the NSTableView like I have programed it !

Unique ID, 	Client, 			Description
---------------------------------------------
1234, 		clientName, 		clientDescription

Unfortunaly, if I use a other OS user (with Admin rigth too), when I display the view who contains the NSTableView, the tableView would not be display it frame. We see nothing from the NSTableView.
At this time, the Console write :


*** -[NSCFDictionary setObject:forKey:]: attempt to insert nil value

That's an exeample, my program load data from MySql, but the program is exactly the same with this example !

Could have some body an Idee why It doesn't work correctly ?

Thank you
Marc
_______________________________________________

Cocoa-dev mailing list (email@hidden)

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 doesn't display it
      • From: "Julio Cesar Silva dos Santos" <email@hidden>
  • Prev by Date: Miniaturizing Custom Windows
  • Next by Date: Re: NSTableView doesn't display it
  • Previous by thread: Miniaturizing Custom Windows
  • Next by thread: Re: NSTableView doesn't display it
  • Index(es):
    • Date
    • Thread