• 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
NSTable view NSArrayController add: not updating
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSTable view NSArrayController add: not updating


  • Subject: NSTable view NSArrayController add: not updating
  • From: Juan Branger <email@hidden>
  • Date: Fri, 3 Feb 2006 14:26:16 +0100

When using the add method with NSArrayController the NSTableview asociated didn't notice the change made by "add" method, but if I use [super addObject:[super newObject]] it does work. What is going on, shouldn't add method update the tableview?

I'm making a core data application and I was just trying to make a recent created object of a NSArraycontroller to enter edit mode right after is created.


//Subclassing of NSArrayController add method - (void)add:(id)sender {

	//vistaTable is the NSTableView Outlet

[super addObject:[super newObject]];
//[super add:sender] does not update the table view as it should

[vistaTabla selectRow:[vistaTabla numberOfRows] -1 byExtendingSelection:NO];
[vistaTabla editColumn:0 row:[vistaTabla selectedRow] withEvent:nil select:YES];
}


Regards,
Juan



_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: NSTable view NSArrayController add: not updating
      • From: email@hidden
  • Prev by Date: Re: [High Spam] Re: Converting error codes to readable strings?
  • Next by Date: Re: Converting error codes to readable strings?
  • Previous by thread: Re: Property name clashes with a method implemented by NSManagesObject or NSObject
  • Next by thread: Re: NSTable view NSArrayController add: not updating
  • Index(es):
    • Date
    • Thread