• 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: Crash on [NSApp endSheet]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Crash on [NSApp endSheet]


  • Subject: Re: Crash on [NSApp endSheet]
  • From: Matt Neuburg <email@hidden>
  • Date: Thu, 03 Aug 2006 11:23:14 -0700
  • Thread-topic: Crash on [NSApp endSheet]

On Thu, 3 Aug 2006 18:21:40 +0200, Jonas Oberschweiber
<email@hidden> said:
>Hi,
>
>In my application I have a sheet with a NSProgressIndicator in it:
>
>   [NSApp beginSheet: busySheet
>           modalForWindow: window
>           modalDelegate: self
>           didEndSelector: @selector
>(didEndSheet:returnCode:contextInfo:)
>           contextInfo: nil];
>
>   [spinner startAnimation:self];
>
>   // Do some Core Data work
>
>   [spinner stopAnimation:self];
>
>   [NSApp endSheet:busySheet];
>
>busySheet is an Outlet connected to my class via IB, same for
>spinner, the NSProgressIndicator.
>
>Everything works perfectly at first, but when [NSApp
>endSheet:busySheet] gets called, all hell breaks loose and I get a
>big crash.

So why do you tie the crash to the progress indicator? I'm not saying you're
wrong, but you don't demonstrate that you're right, either. Is there
evidence for this? If you comment out the two lines starting with "spinner"
and try again, does the crash happen now? Does the backtrace on the "big
crash" indicate that the progress indicator is involved?

m.

--
matt neuburg, phd = email@hidden, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide - Second Edition!
<http://www.amazon.com/gp/product/0596102119>



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Crash on [NSApp endSheet]
      • From: Jonas Oberschweiber <email@hidden>
  • Prev by Date: Re: looks like Intel vs. PowerPC difference
  • Next by Date: Re: NSPasteboard types for JPEG, GIF and PNG
  • Previous by thread: Crash on [NSApp endSheet]
  • Next by thread: Re: Crash on [NSApp endSheet]
  • Index(es):
    • Date
    • Thread