View Full Version : Problem in path control?

May 27, 2011, 02:50 AM
Hi all,

i m using path control to display the path of folder.

but some time the control is not display when i open my window or when i m trying to set path.

like this.

//here _logFilesFolder is the referencing outlet of path control.

Preferences* pref = [Preferences sharedInstance];
[pref setupDefaultLogFilesFolder];
[_logFilesFolder setURL: [NSURL URLWithString:[pref logFilesFolder]]];

please help me how can i solve this.

May 28, 2011, 09:19 PM
Start by breaking down the complex expression into it's components, and logging them.

Preferences* pref = [Preferences sharedInstance];
NSLog(@"pref=%@", pref);
[pref setupDefaultLogFilesFolder];
NSString* logFilesFolderPath = [pref logFilesFolder];
NSLog(@"logFilesFolderPath=%@", logFilesFolderPath);
NSURL* logFilesFolderURL = [NSURL URLWithString:logFilesFolderPath];
NSLog(@"logFilesFolderURL=%@", logFilesFolderURL);
NSLog(@"_logFilesFolder=%@", _logFilesFolder);
[_logFilesFolder setURL:logFilesFolderURL];

These log messages will appear in the Debugger Console of XCode 3 or the Debug Area of XCode 4.

What do they show you when the control won't display?

Jun 9, 2011, 11:38 PM
thanks its done now.