• 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: Problem with stopModalWithCode on a different thread
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problem with stopModalWithCode on a different thread


  • Subject: Re: Problem with stopModalWithCode on a different thread
  • From: Charles Srstka <email@hidden>
  • Date: Tue, 22 Jun 2010 16:02:57 -0500

On Jun 22, 2010, at 3:58 PM, Bill Appleton wrote:

> Hi Charles,
>
> Under Safari 64 bit you HAVE to use Cocoa -- there ain't nuthin' else.
>
> By the way i just found out that this problem is FIXED in the latest version of Safari.
>
>
> Thanks all,
>
> bill

Unless your plug-in is 64-bit only, there’s the chance the 32-bit binary could load into a non-Cocoa browser such as Firefox.

And even if it happens to work on the new version of Safari, there’s no guarantee it will continue to do so indefinitely, since this is something that Apple’s official guidelines recommend against doing. I would probably look into a different solution.

Your best bet is probably to spin off a new process which is a background-only app. The app launches, displays the modal dialog box, and exits with the appropriate result code. Alternatively, if your needs are simple, you could fork/exec the osascript tool and use AppleScript to make a simple dialog.

Charles_______________________________________________

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: Problem with stopModalWithCode on a different thread
      • From: Jens Alfke <email@hidden>
References: 
 >Problem with stopModalWithCode on a different thread (From: Bill Appleton <email@hidden>)
 >Re: Problem with stopModalWithCode on a different thread (From: Jens Alfke <email@hidden>)
 >Re: Problem with stopModalWithCode on a different thread (From: Charles Srstka <email@hidden>)
 >Re: Problem with stopModalWithCode on a different thread (From: Bill Appleton <email@hidden>)
 >Re: Problem with stopModalWithCode on a different thread (From: Charles Srstka <email@hidden>)
 >Re: Problem with stopModalWithCode on a different thread (From: Bill Appleton <email@hidden>)

  • Prev by Date: Re: Problem with stopModalWithCode on a different thread
  • Next by Date: Compile Error: undeclared (first use in this function) --> While Init'ing an Object
  • Previous by thread: Re: Problem with stopModalWithCode on a different thread
  • Next by thread: Re: Problem with stopModalWithCode on a different thread
  • Index(es):
    • Date
    • Thread