• 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
A little doubt about NSTableView.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

A little doubt about NSTableView.


  • Subject: A little doubt about NSTableView.
  • From: Roberto <email@hidden>
  • Date: Mon, 15 Dec 2003 09:37:04 +0100

I've got an NStableView with one only column (simplify), and I would
insert a predefined value at button pressed.

I've got this function:
If I insert the value into the NSMutableArray (comicsArray) in this
part of code, NSTableView shows the values:

- (comicDataSource *) init
{
[super init];

comicsArray = [[NSMutableArray alloc] init];

[comicsArray addObject:@"gdfsgfdsgsdfgdf"]; //If I insert here the
code, NSTableView shows values!
return self;
}

But if I just insert the code in the right function, it doesn't insert
values into NSTableView, like:

- (void) addComic: (id) sender
{
[comicsArray addObject:@"fdsafdf"]; //If I insert here the code,
NSTableView doesn't show values!
}

Why??


I know that NSTableView is the most complicated Object of Cocoa, that
for understand it I should read all the topics and Tutorials of Cocoa
Programming, but I've done all the possible to understand NSTableView,
but I can't.
_______________________________________________
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.

  • Follow-Ups:
    • Re: A little doubt about NSTableView.
      • From: Stéphane Sudre <email@hidden>
  • Prev by Date: Re: Wrong result with createDirectoryAtPath:attributes:
  • Next by Date: Re: Odd memory issue -- not a newbie
  • Previous by thread: Re: Drag & Drop on in a NSMatrix
  • Next by thread: Re: A little doubt about NSTableView.
  • Index(es):
    • Date
    • Thread