On Fri, May 10, 2013 at 9:19 AM, Robert Vojta <rob...@tapmates.com> wrote:
> On Friday, 10. May 2013 at 9:00, Stephen J. Butler wrote:
>
> Make launchd run the same executable, but with a "--daemon" option. That's
> got to be as easy, or easier, than detecting an already running one and
> forking + daemonizing.
>
> Detecting is not so hard …
>
> [NSRunningApplication
> runningApplicationsWithBundleIdentifier:@"GUI-APP-BUNDLE-ID"]
>
> … and you can start app in this way …
>
> [NSWorkspace launchApplicationAtURL:options:configuration:error:]
>
> … but I wouldn't do this. Stick with launchd.

Thanks, I'l try it.

>
> Oh, are going to release your app in Mac App Store for example? There're
> some limitations because of Sandbox.

I don't think it would fit sandbox. Or do you have any idea how to
pass command-line application to App Store? :-)

>
> BTW if you're command line guy,isn't this ...
>
>  qlmanage -p $PHOTO_PATH1 $PHOTO_PATH2 …
>
> … enough for you? Different shortcuts, but it does the same thing as your
> app (didn't look at it, based on your description).

I'm not on my mac, but I guess it's a quick-look app which you can
reach by clicking an eye button in Finder. I didn't know the
command-line but executed quick-view by the eye-button from Finder is
slow. My application loads images on all 4 CPU cores asynchronously
and cache them up to the settable memory limit. In other words, I
managed to implement really fast image switching. I haven't seen any
app switching and showing images as fast. I also make SHA1 sum for
each image and so I can remember and save whether it was rotated or
whether I have the same image in the different file.

I have also a different opinion on window borders, transparency,
application hiding and exiting etc...

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to