• 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
NSDocumentController Problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: NSDocumentController Problem
      • From: Nick Zitzmann <email@hidden>
    • Re: NSDocumentController Problem
      • From: "I. Savant" <email@hidden>
  • Prev by Date: Problem when i connect "Add" button to NSArrayController
  • Next by Date: Re: How to create a simple pop-up-menu
  • Previous by thread: Re: Problem when i connect "Add" button to NSArrayController
  • Next by thread: Re: NSDocumentController Problem
  • Index(es):
    • Date
    • Thread