Skip navigation.
 
mlRe: fetchWithRequest:merge:error
FROM : cocoalist
DATE : Fri Jun 02 20:52:21 2006

On Feb 7, 2006, at 4:10 PM, <email_removed> wrote:

> 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


I've been using fetchWithRequest:merge:error for awhile now, but I 
noticed that larger files take a much longer time to open and display 
when I use this method.  Is this the expected action?

Thanks,
Bill

Related mailsAuthorDate
No related mails found.