NSDocumentController Problem
NSDocumentController Problem
- Subject: NSDocumentController Problem
- From: 陈清华 <email@hidden>
- Date: Tue, 3 Mar 2009 19:39:31 +0800
Hi
I am transferring my application to Snow. It is a document application based
on sdk 10.4.
I found it will print this message when invoke [[NSDocumentController
sharedDocumentController] openUntitledDocumentAndDisplay:YES error:nil];
"Unable to parse the format string "(displayFlags == null) || ((displayFlags
& 0x0100) == 0)""
It is very strange. But if I change to sdk 10.5, it works fine.
I have write another deamon to invoke this method on sdk 10.4, it still
works fine.
Can anyone hlep me?
Code to invoke:
- (void) applicationDidFinishLaunching:(NSNotification *)aNotification
{
NSError *error = [[NSError alloc] init];
NSDocumentController *docController = [NSDocumentController
sharedDocumentCOntroller];
@try
{
[docController openUntitledDocumentAndDisplay:YES error:error];
}
@catch(NSException *e)
{
NSLog([e description]);
}
@finally
{
[error release];
}
}
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden