• 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
Re: Running a "Choose Template" Sheet
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Running a "Choose Template" Sheet


  • Subject: Re: Running a "Choose Template" Sheet
  • From: Alex Curylo <email@hidden>
  • Date: Mon, 14 Apr 2008 05:17:52 -0700


On 14-Apr-08, at 2:01 AM, email@hidden 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@hidden -- http://www.alexcurylo.com/

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

_______________________________________________

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


  • Prev by Date: To write to a file
  • Next by Date: Re: To write to a file
  • Previous by thread: Re: Running a "Choose Template" Sheet
  • Next by thread: Using Properties at Outlets
  • Index(es):
    • Date
    • Thread