Re: Opening an external file in a external application
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