Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old May 27, 2011, 02:50 AM   #1
Learner
macrumors member
 
Join Date: May 2011
Problem in path control?

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.

Code:
//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.
Learner is offline   0 Reply With Quote
Old May 28, 2011, 09:19 PM   #2
jiminaus
macrumors 65816
 
Join Date: Dec 2010
Location: Sydney
Start by breaking down the complex expression into it's components, and logging them.

Code:
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?
jiminaus is offline   0 Reply With Quote
Old Jun 9, 2011, 11:38 PM   #3
Learner
Thread Starter
macrumors member
 
Join Date: May 2011
thanks its done now.
Learner is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
thread Thread Starter Forum Replies Last Post
How to Spread stacks in Mission Control nick123222 Mac OS X 10.7 Lion 13 Jan 21, 2012 11:29 AM
Library path errors after Apple software update. Alan S MacBook Pro 1 Aug 22, 2011 08:11 PM
font problem in Safari iFeras Mac Basics and Help 7 Feb 7, 2011 12:45 PM
Flash player controler problem in Firefox 3? Ride9650 Mac Applications and Mac App Store 3 Jul 25, 2008 02:07 AM
Problem passing paths with spaces to NSTask HiRez Mac Programming 2 Nov 21, 2006 12:11 PM


All times are GMT -5. The time now is 01:28 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

Privacy / DMCA contact / Affiliate and FTC Disclosure
Copyright 2002-2013, MacRumors.com, LLC