NSTableView doesn't display it
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