• 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: Opening an external file in a external application
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Opening an external file in a external application


  • Subject: Re: Opening an external file in a external application
  • From: John Love <email@hidden>
  • Date: Thu, 14 Aug 2008 10:06:22 -0400


On Aug 13, 08, at 12:09 PM, Shawn Erickson wrote:


On Aug 13, 2008, at 8:17 AM, John Love wrote:

On 12 Aug 2008, has wrote:

Really though, what's best/practical/possible all depends on what you're trying to do, so if you want more advice then you'll need to provide more information.

Very short info list is as follows (stuff I need to do from within my Cocoa app):


1) be able to save the Excel spreadsheet
2) be able to stop any calculation in progress
3) be able to detect if the user closed the spreadsheet "behind the back" of my Cocoa app, upon which my Cocoa app would raise a NSAlert.


Before I forget again, one question *not* related to the above, namely, the call within my overridden readFromURL:

workSpace = [NSWorkspace sharedWorkspace];
 success = [workSpace openURL:absoluteURL];

activates Excel .. what do I need to add to re-activate my Cocoa app .. "activate me" was terribly easy with AppleScript.

NSApplication has methods to active your application.


found it ... thanks!

[NSApp activateIgnoringOtherApps:YES];

... now back to (1,2,3) above

John Love
Touch the Future! Teach!



_______________________________________________

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: Opening an external file in a external application
      • From: John Love <email@hidden>
References: 
 >Re: Opening an external file in a external application (From: John Love <email@hidden>)
 >Re: Opening an external file in a external application (From: Shawn Erickson <email@hidden>)

  • Prev by Date: crashing MacOs application when running a build file
  • Next by Date: Re: Detect when another application goes into full screen mode or when dock becomes hidden
  • Previous by thread: Re: Opening an external file in a external application
  • Next by thread: Re: Opening an external file in a external application
  • Index(es):
    • Date
    • Thread