NSError *error = nil;
NSURLBookmarkCreationOptions options =
NSURLBookmarkCreationSuitableForBookmarkFile |
NSURLBookmarkCreationWithSecurityScope;
NSData *bookmarkData = [self.url bookmarkDataWithOptions:options
includingResourceValuesForKeys:nil
On May 10, 2013, at 10:50 PM, Zhuang Xu wrote:
> On Mac Developer Library, launchApplicationAtRL return value, I Quote"The
> the application could not be launched nil is returned, and the error is
> specified in *error*." and the problem is when get an error, the program
> can't launch an new appl
On May 1, 2013, at 11:29 PM, Zhuang Xu wrote:
> I am using NSWorkspace launchApplicationAtURL:options:configuration:error
> launch the same app in Sandbox, sometimes there is an error:
>
> "The operation couldn't be completed. (OSStatus error - 10810)"
What do you mean "there is an error"? Does
On Mac Developer Library, launchApplicationAtRL return value, I Quote"The
the application could not be launched nil is returned, and the error is
specified in *error*." and the problem is when get an error, the program
can't launch an new application, and the error is not always appear.
So I am gue
On 11 May, 2013 2:07:18 HKT, Quincey Morris
wrote:
> On May 10, 2013, at 07:12 , Jerry Krinock wrote:
>
>> I think that it would help to have a higher-level understanding of the
>> problem. How about this…
>>
>> You have a sandboxed app in which the user has somehow opened a document
>> ou
On Fri, May 10, 2013 at 2:03 PM, Jens Alfke wrote:
> #!/bin/sh
> open -b com.example.XQIVApp $@
>
You probably want this instead to prevent word splitting for elements that
have spaces:
open -b com.example.XQIVApp "$@"
Nothing is ever trivial in sh/bash ;)
_
On May 9, 2013, at 11:56 PM, Ondrej Holecek wrote:
> No, the "daemon" is the picture viewer itself. It is hidden most of
> the time.
That doesn’t sound like a daemon or an agent; those types of things run in the
background with no UI. Once there’s a UI, you are writing a regular app. If you
d
On May 9, 2013, at 6:57 PM, Graham Cox wrote:
> a) the data model explicitly calls a method of the controller to tell it
> about a change. This isn't great, because it sets up a strong dependency
> between the data model classes and the controller class(es).
> a+) the data model declares an in
On May 10, 2013, at 07:12 , Jerry Krinock wrote:
> I think that it would help to have a higher-level understanding of the
> problem. How about this…
>
> You have a sandboxed app in which the user has somehow opened a document
> outside your sandbox (because the user navigated to it in an Open
On 2013 May 09, at 23:26, Jim McGowan wrote:
> Core Data document migration will try to write the migrated store to the same
> directory as the original, but the sandbox blocks this.
I think that it would help to have a higher-level understanding of the problem.
How about this…
You have a s
On 5 May 2013, at 6:47 PM, Michael Crawford wrote:
> @property (retain,nonatomic) IBOutlet UIWebView *webView;
...
> @synthesize webView;
...
> NSLog( @"%@", webView );
I've seen this before, but only in the case where there was no @synthesize; did
your actual code use it?
In recent
It should go without saying that the "text" char array you suggest must already
exist, and be at least one char longer than the longest string you expect (I'd
make it twice as long).
And use snprintf(3) instead. Bad People (or you) will try to overrun the buffer
if you don't prevent it. (Not li
On 1 May 2013, at 10:29 PM, Zhuang Xu wrote:
> I am using NSWorkspace launchApplicationAtURL:options:configuration:error
> launch the same app in Sandbox, sometimes there is an error:
>
> "The operation couldn't be completed. (OSStatus error - 10810)"
>
> this error appears occasionally not all
On Friday, 10. May 2013 at 12:47, Ondrej Holecek wrote:
> I don't think it would fit sandbox. Or do you have any idea how to
> pass command-line application to App Store? :-)
>
>
Just like BBEdit … App in MAS and command line utility downloadable from your
website outside of the MAS.
___
On Fri, May 10, 2013 at 9:19 AM, Robert Vojta 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.
>
> Det
On May 8, 2013, at 5:41 AM, Ondrej Holecek wrote:
> The question is, how to force NSApplicationMain() to run in child.
>
> The basic idea is to do something like this:
>
> if (already running) {
> return cmd_main(argc, argv);
> } else {
>if (fork() == 0) {
>return NSApplicationMain
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
runningAppl
On Fri, May 10, 2013 at 1:56 AM, Ondrej Holecek wrote:
> thanks for the hint, I have to check this first. However at first
> glance it seems I have to create 2 applications. Daemon and cmd-line
> app. My idea is to have just one app which behaves as a "daemon" in
> case the deamon doesn't run yet
18 matches
Mail list logo