On 14-Apr-08, at 2:01 AM, [EMAIL PROTECTED] wrote:
I've researched it a bit and found an app that subclasses
NSDocumentController and overrides
openUntitledDocumentAndDisplay:error: method and runs the sheet there.
Is this the correct place to be running the sheet? Thanks!

Well, I've got something similar in that my document needs a source movie, and I simply ovverrode -showWindows.

- (void)showWindows
{
   [super showWindows];

   NSURL* fileURL = [self fileURL];
   if (!fileURL)
   {
      // first show of a new empty document -- pick a source movie
      [self pickSourceMovie:nil];
   }
}

However, since I can't even write -dealloc methods using the correct language, as you may have noticed in the ivar thread, one should certainly not take this happening to work for me so far as any kind of proof of correctness.

--
Alex Curylo -- [EMAIL PROTECTED] -- http://www.alexcurylo.com/

Apparently my purpose in life is to serve as a warning to others.

_______________________________________________

Cocoa-dev mailing list ([email protected])

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 [EMAIL PROTECTED]

Reply via email to