Re: NSDocumentController Problem

2009-03-03 Thread Sean McBride
On 3/3/09 11:30 AM, Nick Zitzmann said: >> NSLog([e description]); > >Don't ever do this. NSLog() takes a varargs string, so if there is a % >in the description, then the app will crash. Instead, do this: >NSLog(@"%@", e); The compiler can catch this mistake if you add "-Wformat=2". It will

Re: NSDocumentController Problem

2009-03-03 Thread Nick Zitzmann
On Mar 3, 2009, at 4:39 AM, 陈清华 wrote: I am transferring my application to Snow. And the first rule of Fight Club is... Code to invoke: - (void) applicationDidFinishLaunching:(NSNotification *)aNotification { NSError *error = [[NSError alloc] init]; But I don't think I'm violating any N

Re: NSDocumentController Problem

2009-03-03 Thread I. Savant
On Tue, Mar 3, 2009 at 6:39 AM, 陈清华 wrote: > I am transferring my application to Snow. You can't discuss Snow Leopard because you've agreed to the NDA. Anybody else who might be able to help you is similarly bound by this agreement, so nobody can help you. -- I.S.

NSDocumentController Problem

2009-03-03 Thread 陈清华
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) || (