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 (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