• 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: Open document panel always on top - Mountain Lion
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Open document panel always on top - Mountain Lion


  • Subject: Re: Open document panel always on top - Mountain Lion
  • From: Quincey Morris <email@hidden>
  • Date: Sat, 11 Oct 2014 00:29:11 +0000

On Oct 10, 2014, at 13:34 , Matthew LeRoy <email@hidden> wrote:

> Not entirely sure where to go from here.

It’s not clear to me whether the deferral of the open panel’s disappearance is a mere implementation detail of NSDocumentController, or if it’s a consequence of what you chose to do in your completion handler.

I think I’d be inclined to sacrifice a bit of time to experiment with handling the open panel yourself, in advance of diving into NSDocumentController, at least for the handling of passwords. That is, provide your own action method in place of ‘openDocument:’ for the relevant menu item. Then you can ‘orderOut:’ the open panel exactly when you want, and any duplication of effort may be less (in terms of development time and pain) then “customizing” the behavior of NSDocumentController.

Also keep in mind the other possibility: have your ‘readFromURL:’ method defer the password checking and the reading of the document until the window is open (and do the password interaction as a sheet on that window). That might also be worth a bit of time to experiment, even if it turns out to be infeasible.



_______________________________________________

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: Open document panel always on top - Mountain Lion
      • From: Matthew LeRoy <email@hidden>
References: 
 >Open document panel always on top - Mountain Lion (From: Matthew LeRoy <email@hidden>)
 >Re: Open document panel always on top - Mountain Lion (From: Quincey Morris <email@hidden>)
 >Re: Open document panel always on top - Mountain Lion (From: Matthew LeRoy <email@hidden>)
 >Re: Open document panel always on top - Mountain Lion (From: Quincey Morris <email@hidden>)
 >Re: Open document panel always on top - Mountain Lion (From: Matthew LeRoy <email@hidden>)
 >Re: Open document panel always on top - Mountain Lion (From: Quincey Morris <email@hidden>)
 >Re: Open document panel always on top - Mountain Lion (From: Matthew LeRoy <email@hidden>)

  • Prev by Date: Re: Open document panel always on top - Mountain Lion
  • Next by Date: Re: Concurrent tasks are getting hung up
  • Previous by thread: Re: Open document panel always on top - Mountain Lion
  • Next by thread: Re: Open document panel always on top - Mountain Lion
  • Index(es):
    • Date
    • Thread