• 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: How to use install location, specifically with prefs pane
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to use install location, specifically with prefs pane


  • Subject: Re: How to use install location, specifically with prefs pane
  • From: Jean-Daniel Dupas <email@hidden>
  • Date: Wed, 26 Mar 2008 09:43:05 +0100


Le 25 mars 08 à 23:02, Rick Mann a écrit :
Hi. I'm working a prefs pane, and am wondering if there's a faster way through the build/debug cycle. Currently, I make a change, build it, double-click the result, say "yes" to System Preferences' challenge to replace the prefs pane, then often quit & relaunch System Prefs because it didn't seem to take the new build.

I don't think System Preferences unload bundles when it no longer need it, so whatever you do, you will have to restart it each time you update your bundle.


I've seen settings related to install locations, and my prefs pane (built from the Xcode 3.1 stationery) is pre-set to install into my home dir's prefs pane location.

To install automatically your pref-pane you have to adjust a bunch of settings.


First "Installation Directory" (INSTALL_PATH): set it to $ (USER_APPS_DIR)/Library/PreferencePanes
Then "Installation Build Products Location" (DSTROOT): must be "/" instead of /tmp/$(PROJECT_NAME).dst else Xcode will install you product in "/tmp/$(PROJECT_NAME).dst/$(INSTALL_PATH)"


And finaly, check the "Deployment Location" box (DEPLOYMENT_LOCATION)

now, Xcode should build your product directly in you Pref Panes directory and it will create a symlink in your build dir.


How can I get Xcode to put it there automatically? And, I may as well ask, how can I initiate a debugging session on my pane?

To debug a plugin, you have to launch the host application in debug mode. In Xcode, Menu Project > New Custom Executable… (or right clic > Add > New Custom Executable…)
As executable path, choose "System Preferences" and that's it. Now you can launch it the same way you do for a standard executable in Xcode, and the debugger will break when it encounter one of your break point.



TIA!
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >How to use install location, specifically with prefs pane (From: Rick Mann <email@hidden>)

  • Prev by Date: Re: Beginners question on String handling
  • Next by Date: Re: Compiler constants
  • Previous by thread: How to use install location, specifically with prefs pane
  • Next by thread: Copying build product from one project to another?
  • Index(es):
    • Date
    • Thread