• 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: NSDocument's Open File Panel unresponsive when opening large file from disc
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSDocument's Open File Panel unresponsive when opening large file from disc


  • Subject: Re: NSDocument's Open File Panel unresponsive when opening large file from disc
  • From: Gilles Celli <email@hidden>
  • Date: Mon, 04 Feb 2013 17:05:03 +0100

Mike,

Again you were right !

The data processing was blocking the main queue with large files, so that the Open Panel didn't close immediately.

It works now with large data files too by using dispatch_barrier_async() in the init file of my app's WindowController class.

I have some deleted threads though with "uncommitted CATransaction" on OS X 10.8.2 only (but not on OS X 10.7.x) to display the graphs…
but that could be a bug of the graphs framework…need to check….

Anyway, thanks for all your patience and help.

Gilles

On 31 Jan 2013, at 17:06, Mike Abdullah wrote:

>
> On 31 Jan 2013, at 15:06, Gilles Celli <email@hidden> wrote:
>
>> Hmm well Mike you were right!
>>
>> I was too enthusiastic yesterday by claiming that I fixed my Open Panel problem… I tried it here on my old Mac Mini with OS X 10.7 and the Open Panel
>> still stays open even with my newer code with windowDidLoad tec.…strangely enough but at home it did work with my iMac 27" and OS X 10.8.2…will need to try tonight…
>>
>> One possibility is that that large file gets cached, but not really purged….
>>
>> I will try the way of subclassing NSDocumentController (I just find out how to do it by instantiating my new NSDocumentContoller class into MainMenu.nib)…
>> Will let you know how it goes….I'm getting mad :-0
>
> Seriously, it sounds like you're blocking the main thread. Fix that. There should be no need to coerce the open panel into disappearing.
>


_______________________________________________

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: NSDocument's Open File Panel unresponsive when opening large file from disc
      • From: Kyle Sluder <email@hidden>
  • Prev by Date: Re: NSDocument packages and incremental writing using NSFileWrapper
  • Next by Date: Re: NSDocument's Open File Panel unresponsive when opening large file from disc
  • Previous by thread: Re: iOS 6.0 SDK UIApplicationInvalidInterfaceOrientation
  • Next by thread: Re: NSDocument's Open File Panel unresponsive when opening large file from disc
  • Index(es):
    • Date
    • Thread