Re: NSFileManager Preference Pane
Re: NSFileManager Preference Pane
- Subject: Re: NSFileManager Preference Pane
- From: Mike Blaguszewski <email@hidden>
- Date: Thu, 30 Mar 2006 11:33:49 -0500
On Mar 30, 2006, at 9:18 AM, Robert Crawford wrote:
I am trying to call the NSFileManager inside a preference pane,
when I add the code to do this the preference pane will not load,
what could cause this?
I assume you mean an NSPreferencePane, right? There's no reason
NSFileManager calls shouldn't work there. Have you tried running it
in the debugger? If you add System Preferences as a custom executable
and set it as the active executable from the Project menu, you should
be able to set breakpoints in initWithBundle:, willSelect, etc.
(caveat: haven't completely tested this approach; I used to use gdb
directly for it.)
If it's just a preference pane inside your own app, then it should be
even easier to debug. You're probably doing something that's throwing
an exception (which some NSFileManager methods can). Trying setting a
symbolic breakpoint on -[NSException raise].
--
Mike Blaguszewski / Ambrosia Software, Inc.
_______________________________________________
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