Rui, Generally you don't use the "data source" method of filling up an NSTableView when you use Core Data. Doing so would require you to observe changes to the Managed Object Context, and reload the table manually. Instead, you would usually use an NSArrayController in your NIB instead, and use bindings. This is explained in more detail in Aaron Hillegass's book, a great one and one that I recommend for beginners, called something about starting with Mac OS X development, or something. It's pretty famous around these here parts, I'm sure you can find it somewhere. But remember, use NSArrayController, not manual bindings, when using Core Data. (Usually.)
-- Steven Degutis http://www.thoughtfultree.com/ http://www.degutis.org/ On Tue, Sep 8, 2009 at 9:55 AM, Rui Pacheco <rui.pach...@gmail.com> wrote: > Hi all, > I've an NSTableView that uses the controller object for the NIB being > displayed as the data source. I implement the NSTableView informal > protocol. > > This NSTableView gets its values from Core Data. I startup the application, > load all values I have in XML and then display them. > > My problem is, the NSTableView doesn't seem to add any new rows to the end > of the table. If I start the application with no values in permanent > storage > and add another one (adding values works as I can see them being saved to > XML), the table view simply ignores the new value. > > If I add a value I know will go to the end of the table (the contents are > organized alphabetically), I won't see the new value. > > If I and a value that I know won't go to the end of the table, the value > will be added, I will see it on the table, but the last value on the table > will be pushed out and become invisible. > > Has anyone encountered something like this? Any clues to what might be? > > -- > Best regards, > Rui Pacheco > _______________________________________________ > > Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) > > 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: > http://lists.apple.com/mailman/options/cocoa-dev/steven.degutis%40gmail.com > > This email sent to steven.degu...@gmail.com > _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com