• 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: NSUIElement
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSUIElement


  • Subject: Re: NSUIElement
  • From: Thomas Castiglione <email@hidden>
  • Date: Fri, 4 Oct 2002 21:40:32 +0800

On Friday, October 4, 2002, at 07:04 AM, Ben Mackin wrote:

On 10/3/02 2:01 PM, "Olivier" <email@hidden> wrote:

As this key is in your plist you have to write to that plist (requiring
authentication) inside your app and probably require a restart of the
app.

i do not think you can toggle that from within the app.

I should have been more clear. I know it couldn't be done on the fly, but if
I could add an option, and say it took effect on next launch, that is what I
am looking for.

Why would I need authentication to write to that file? It isn't installed by
root or anything, just a normal app. It would be a bummer if I had to write
to this file everytime, but can be done.

Is this not the correct way to hide the icon from the dock?

It is the correct way, and you won't need authentication. You do need to have the app relaunched, though. The way I do it in FocusLayer (http;//homepage.mac.com/castiglione/software/FocusLayer.dmg) is to load the plist into a dictionary, modify that, and then write it back out again. Actually, it might be possible to do it on the fly, with some freaky run-loop business, but I haven't really tried that yet.

- Thomas Castiglione
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: NSUIElement
      • From: Finlay Dobbie <email@hidden>
References: 
 >Re: NSUIElement (From: Ben Mackin <email@hidden>)

  • Prev by Date: Re: Bochs - Free PC emulator
  • Next by Date: Re: Bochs - Free PC emulator
  • Previous by thread: Re: NSUIElement
  • Next by thread: Re: NSUIElement
  • Index(es):
    • Date
    • Thread