• 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: Core Data, binding & selecting table rows upon document open
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Core Data, binding & selecting table rows upon document open


  • Subject: Re: Core Data, binding & selecting table rows upon document open
  • From: mmalcolm crawford <email@hidden>
  • Date: Tue, 7 Feb 2006 14:15:59 -0800


On Feb 6, 2006, at 10:39 PM, Modesitt Software wrote:

I tried that but still no luck. I think it's the same issue: it can't be done in windowControllerDidLoadNib, it has to be set after all the data are inserted into the table. Is there a delegate method or notification sent after all data are loaded?

No.
The controller's fetch is performed "delayed" after its managed objects context is set (by nib loading). You can execute the fetch "manually" with fetchWithRequest:merge:error: (<http:// developer.apple.com/documentation/Cocoa/Reference/ApplicationKit/ ObjC_classic/Classes/NSObjectController.html#//apple_ref/occ/instm/ NSObjectController/fetchWithRequest:merge:error:>):



- (void)windowControllerDidLoadNib:(NSWindowController *) windowController
{
[super windowControllerDidLoadNib:windowController];


	NSError *error;
	BOOL ok = [arrayController fetchWithRequest:nil merge:NO error:&error];

	// ...

mmalc

_______________________________________________
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


References: 
 >Core Data, binding & selecting table rows upon document open (From: Modesitt Software <email@hidden>)
 >Re: Core Data, binding & selecting table rows upon document open (From: Chris Hanson <email@hidden>)
 >Re: Core Data, binding & selecting table rows upon document open (From: Modesitt Software <email@hidden>)

  • Prev by Date: Re: Advice on restricting/monitoring character input in NSTextView
  • Next by Date: Re: File permissions when copying files using NSFileManager
  • Previous by thread: Re: Core Data, binding & selecting table rows upon document open
  • Next by thread: [MEET] Next CoocaHeads! Thursday Feb 9 and Tuesday Feb 14
  • Index(es):
    • Date
    • Thread