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

Re: Debugging System Prefpane


  • Subject: Re: Debugging System Prefpane
  • From: "b.bum" <email@hidden>
  • Date: Thu, 16 Sep 2004 14:24:30 -0700

On Sep 16, 2004, at 1:28 PM, Sean McBride wrote:
Jon Flowers (email@hidden) on Tue, Sep 14, 2004 17:01 said:
What is the easiest way to debug a prefPane?

The easiest way is to create a custom executable that points to /Applications/SystemPreferences.app.


Then, just run SystemPreferences.app under the debugger and click on your preferences pane.

Note that you do not need to install or copy your pref pane every time. Go to the terminal and create a symlink from ~/Library/PreferencePanes/ to the build output location. Say I was writing a pref pane named 'Foo'.

% cd ~/Library/PreferencePanes/
% ln -s /build/bbum-products/Foo.prefPane

You will need to relaunch System Preferences (or relaunch in gdb) after each build.

This same method works well for most kinds of plugins/bundles, including context menus in the Finder (it is how SCPlugin is debugged, for example).

b.bum


_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >Debugging System Prefpane (From: Jon Flowers <email@hidden>)
 >Re: Debugging System Prefpane (From: "Sean McBride" <email@hidden>)

  • Prev by Date: Re: Manual filling NSTableView
  • Next by Date: Re: NextQuestion: Searchable Data Structures.
  • Previous by thread: Re: Debugging System Prefpane
  • Next by thread: query: setNeedsDisplay
  • Index(es):
    • Date
    • Thread