Re: Login item not hidden

2011-06-10 Thread Leonardo
I supposed that, so, ok I will find a workaround. Thanks. You know a lot of things! Regards -- Leonardo > Da: Jens Alfke > Data: Thu, 9 Jun 2011 10:43:42 -0700 > A: Leonardo > Cc: Cocoa Developers > Oggetto: Re: Login item not hidden > > > On Jun 9, 2011, at

Re: Login item not hidden

2011-06-09 Thread Jerry Krinock
On 2011 Jun 09, at 10:43, Jens Alfke wrote: > On Jun 9, 2011, at 4:10 AM, Leonardo wrote: > >> I just hope that the helper can launch the app as totally hidden, while a >> user could still launch the app (on a different moment) as a non-hidden app. >> Can I do that? I mean can the helper set the

Re: Login item not hidden

2011-06-09 Thread Jens Alfke
On Jun 9, 2011, at 4:10 AM, Leonardo wrote: > I just hope that the helper can launch the app as totally hidden, while a > user could still launch the app (on a different moment) as a non-hidden app. > Can I do that? I mean can the helper set the LaunchServices of the app on > the fly? Nope. LSUI

Re: Login item not hidden

2011-06-09 Thread Leonardo
Leonardo > Cc: Cocoa Developers > Oggetto: Re: Login item not hidden > > > On Jun 8, 2011, at 10:55 AM, Leonardo wrote: > >> Thanks Jens but I can't split the engine from the interface. It's a huge >> work. > > That¹s too bad. This kind of situatio

Re: Helper Tools and launchd. Was: Login item not hidden

2011-06-08 Thread Jens Alfke
On Jun 8, 2011, at 4:12 PM, Jerry Krinock wrote: > Unfortunately there are some Cocoa classes which you need in command-line > tools which are in AppKit; NSWorkspace for example. Yeah, there are some annoyances like that. A little bird told me some of that may be improved in Lion, but sources

Re: Helper Tools and launchd. Was: Login item not hidden

2011-06-08 Thread Jerry Krinock
On 2011 Jun 08, at 10:31, Jens Alfke wrote: > You’ll need to build a separate binary, for launchd to invoke, that runs > without a UI; this can be built like a regular command-line tool, so you > invoke your code from the main() function, don’t link against AppKit, etc. Unfortunately there are

Re: Login item not hidden

2011-06-08 Thread Jens Alfke
On Jun 8, 2011, at 10:55 AM, Leonardo wrote: > Thanks Jens but I can't split the engine from the interface. It's a huge > work. That’s too bad. This kind of situation is an example of why it’s good to keep these things separable. > Also, the app should still work as a normal app, so I would no

Re: Login item not hidden

2011-06-08 Thread Leonardo
App2 should be used as login item. Could it work? Regards -- Leonardo > Da: Jens Alfke > Data: Wed, 8 Jun 2011 10:31:53 -0700 > A: Leonardo > Cc: Cocoa Developers > Oggetto: Re: Login item not hidden > > > On Jun 8, 2011, at 10:11 AM, Leonardo wrote: > >>

Re: Login item not hidden

2011-06-08 Thread Jens Alfke
On Jun 8, 2011, at 10:11 AM, Leonardo wrote: >- launch my app as hidden at a given time (I have a list of timers) >- do a task >- quit I suggest using launchd to schedule tasks to run at specific times. (Similar functionality to ‘cron’ on traditional Unix.) Then your app doesn’t hav

Re: Login item not hidden

2011-06-08 Thread Leonardo
, executing the task manually. I get puzzled here. Any idea? Regards -- Leonardo > Da: Jens Alfke > Data: Tue, 7 Jun 2011 15:55:50 -0700 > A: Leonardo > Cc: Cocoa Developers > Oggetto: Re: Login item not hidden > > > On Jun 7, 2011, at 3:46 PM, Leonardo wrote: >

Re: Login item not hidden

2011-06-07 Thread Jerry Krinock
On 2011 Jun 07, at 15:13, Leonardo wrote: > I add my app to the login items list. I mark the hidden check-box. > I re-login, my app gets properly launched but it clearly appears on the > screen, not hidden at all. What do I miss? > I compile with SDK 10.5, target 10.5. There was a bug I reported

Re: Login item not hidden

2011-06-07 Thread Jens Alfke
On Jun 7, 2011, at 3:46 PM, Leonardo wrote: > I see in the login item list an Apple application called iTunesHelper. > This is marked as hidden. And when I login I don't see it at all. I cannot > activate nor quit it. > So, how to make my app behaving exactly like that? If you want an app that h

Re: Login item not hidden

2011-06-07 Thread Leonardo
A: Leonardo > Cc: > Oggetto: Re: Login item not hidden > > > On Jun 7, 2011, at 3:13 PM, Leonardo wrote: > >> I add my app to the login items list. I mark the hidden check-box. >> I re-login, my app gets properly launched but it clearly appears on the >> s

Re: Login item not hidden

2011-06-07 Thread Jens Alfke
On Jun 7, 2011, at 3:13 PM, Leonardo wrote: > I add my app to the login items list. I mark the hidden check-box. > I re-login, my app gets properly launched but it clearly appears on the > screen, not hidden at all. What do I miss? Are you making any call at launch time that would activate the a

Login item not hidden

2011-06-07 Thread Leonardo
Hi, I add my app to the login items list. I mark the hidden check-box. I re-login, my app gets properly launched but it clearly appears on the screen, not hidden at all. What do I miss? I compile with SDK 10.5, target 10.5. Regards -- Leonardo ___ Co