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

Re: NSTableView doesn't display it


  • Subject: Re: NSTableView doesn't display it
  • From: "Julio Cesar Silva dos Santos" <email@hidden>
  • Date: Fri, 22 Dec 2006 09:26:06 -0200

You don't need to allocate memory for a new array, just use arrayWithObject

NSArray * a = [NSArray arrayWithObject:c];

And check the c object (maybe with an NSLog) after creating it to see if it
really has valid values.

--
Julio Cesar Silva dos Santos
email@hidden

2006/12/22, mabo68 <email@hidden>:

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


References: 
 >NSTableView doesn't display it (From: mabo68 <email@hidden>)

  • Prev by Date: NSTableView doesn't display it
  • Next by Date: How to decode QTMovie from QTMovieView
  • Previous by thread: NSTableView doesn't display it
  • Next by thread: How to decode QTMovie from QTMovieView
  • Index(es):
    • Date
    • Thread