Hello,

        I am using an NSDocument based application and I'm having trouble with 
the following code:

-(void) analyzePressed
{
        NSString * raw = [[[NSString alloc]  initWithBytes:[pageData bytes] 
length:[pageData length] encoding: NSUTF8StringEncoding] retain];
        id analyzerdocument = [[NSDocumentController sharedDocumentController] 
openUntitledDocumentOfType:@"AnalyzerType" display:YES];
                                                   
        [analyzerdocument setSourceTextView:raw];
                                                   

}

When I create the document off the sharedDocument controller, the nib hasn't 
fully awoken until after the setSourceTextView selector is called.   My File's 
Owner is set correctly with references to a text view.  The setSourceTextView 
is just a wrapper to [sourceTextView setString:string].   How do I make sure 
the nib is loaded before calling my set routine?

Thanks,

Bruce
_______________________________________________

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

Reply via email to