• 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: Login item not hidden
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Login item not hidden


  • Subject: Re: Login item not hidden
  • From: Leonardo <email@hidden>
  • Date: Wed, 08 Jun 2011 19:11:59 +0200
  • Thread-topic: Login item not hidden

LSUIElement is a great option. I didn't know.
The app doesn't show up at all. Cool.
So I'd tell you more.

My app should execute several tasks fired by several timers. Actually the
app must remain open in order to fire the timers, and this is not what my
client wants. He wants the tasks run as hidden. No one should be able to see
the app or interact with it. So please which is the best way to do:
    - launch my app as hidden at a given time (I have a list of timers)
    - do a task
    - quit

At the same time, the client want to double click on the app and use it
normally, executing the task manually. I get puzzled here.
Any idea?

Regards
-- Leonardo


> Da: Jens Alfke <email@hidden>
> Data: Tue, 7 Jun 2011 15:55:50 -0700
> A: Leonardo <email@hidden>
> Cc: Cocoa Developers <email@hidden>
> Oggetto: Re: Login item not hidden
>
>
> 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 has no Dock icon at all, but can still show windows
> when it needs to, you need to mark it as an LSUIElement. Search the developer
> docs for that keyword and read the info.
>
>> In the applicationDidFinishLaunching method I call
>>    reply = [NSApp runModalForWindow:aboutWindow];
>> an I dismiss the about window with a timer 2 seconds later.
>
> Why run it modally? Why not just show the window with makeKeyAndOrderFront:,
> and then have the timer dismiss it?
>
> (Also, app splash screens are kind of frowned upon in the HI Guidelines,
> except in special cases like games. Your app should launch quickly enough that
> the user can start using it right away, i.e. in a second or two. )
>
> ‹Jens


_______________________________________________

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: Login item not hidden
      • From: Jens Alfke <email@hidden>
References: 
 >Re: Login item not hidden (From: Jens Alfke <email@hidden>)

  • Prev by Date: Re: tools for writing help books
  • Next by Date: retain qualifier on property
  • Previous by thread: Re: Login item not hidden
  • Next by thread: Re: Login item not hidden
  • Index(es):
    • Date
    • Thread