• 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
SystemConfiguration framework in Cocoa?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

SystemConfiguration framework in Cocoa?


  • Subject: SystemConfiguration framework in Cocoa?
  • From: Dave Keck <email@hidden>
  • Date: Mon, 18 Aug 2003 17:12:29 -0400

Begin forwarded message:

From: Dave Keck <email@hidden>
Date: Mon Aug 18, 2003 5:11:51 PM America/New_York
To: "Steven M.Palm" <email@hidden>
Subject: Re: SystemConfiguration framework in Cocoa?

I am trying to wrap this into a Cocoa app, though, and having some real issues... This is unfamiliar ground for me, in several areas. First, the whole "background faceless" app thing, how to get it to now show up in the dock or application switcher/etc...

I don't think I can help you with your other problems, but to solve the one above:

In Project Builder, go to the Targets tab, and click on the main target. Then click "Expert View" under the Info.plist section. After the view appears, click the "New Sibling" button and name the new sibling "NSBGOnly". Set its class to "Number" and set its value to "1". That should do the trick. When you launch the application it should not show up in the Dock, Force Quit window, etc.

I haven't played much with UI's with background applications, but incase you decide you need a preferences window for your BG app or something, I think if you use a "Non activating Panel", as set for *NSPanels* (not regular NSWindows) in the Info Panel in Interface Builder, you may be able to get around some issues. If you need to use the regular NSWindows in your background app, you might check for "NSBGOnly" on google. One article that might help is here:

http://www.omnigroup.com/mailman/archive/macosx-dev/2002-June/ 027575.html

Good luck, hope this is helpful,

Dave

- - -

Dave Keck
If I were smart I'd have a company to tell you the address of.
"Contrariwise," continued Tweedledee, "if it was so, it might be; and if it were so, it would be; but as it isn't, it ain't. That's logic."
_______________________________________________
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.

  • Prev by Date: [Solved] Re: Sorting array : segmentation fault
  • Next by Date: Re: Table view
  • Previous by thread: SystemConfiguration framework in Cocoa?
  • Next by thread: Debug compiler crash
  • Index(es):
    • Date
    • Thread