Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Mac > BOOK: Beginning Mac OS X Programming
Password Reminder
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
BOOK: Beginning Mac OS X Programming
This is the forum to discuss the Wrox book Beginning Mac OS X Programming by Michael Trent, Drew McCormack; ISBN: 9780764573996
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning Mac OS X Programming section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old May 25th, 2006, 11:13 PM
Registered User
Join Date: May 2006
Location: , RI, .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to lawnboy34
Default Chapter 2, exercise 2a


I'm sure this is just an error in the way I am implementing a command, but I am trying to do exercise 2a at the end of Chapter 2, and I am having trouble with the "GetFileInfo" command syntax in Darwin. Whenever I enter /Developer/Tools/GetFileInfo somedirectoryorfile, it gives me the error message "could not refer to file (-43)." Should this work for any file? What is the proper directory syntax to get this to work (/home...?)? Worse yet, I can't seem to pull up the manual for this, as man -k "GetFileInfo" yields "nothing appropriate." I know this is a very basic question, but could someone tell me what I'm doing wrong?

Thanks very much!

  #2 (permalink)  
Old May 28th, 2006, 07:16 AM
Authorized User
Join Date: Aug 2005
Location: La Charité-sur-Loire, , France.
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts

First, are you sure you have developer tools installed? Are you sure developer tools are located at the root of your system volume? The correct path of this utility is /the_absolute_path_of_your_developer_tools/Developer/Tools/GetFileInfo with the correct attributes, -av in this case, and the correct file path of the file you wish to know if it is invisible.

To see manual pages of GetFileInfo, just type "man GetFileInfo" without -k option (and without quotes).

  #3 (permalink)  
Old June 3rd, 2006, 01:05 PM
Wrox Author
Join Date: Nov 2005
Location: , , .
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts


"could not refer to file (-43)"

Is GetFileInfo's 'friendly' way of saying "I couldn't find the thing you typed in the filesystem". That is, if you typed:

/Developer/Tools/GetFileInfo somedirectoryorfile

There was no directory or file named "somedirectoryorfile" in your current working directory. Make sure you type the file name exactly. You can use the normal unix shell tricks here if you like. For example:

/Developer/Tools/GetFileInfo ~

will return the HFS file information for your home directory.


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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Chapter 5 Exercise 2 diango BOOK: Beginning Visual Basic 2005 Databases ISBN: 978-0-7645-8894-5 4 February 1st, 2011 03:24 PM
Chapter 3 - Exercise 3 AndyN BOOK: Beginning Cryptography with Java 3 August 16th, 2006 03:09 PM
Chapter 5 - Exercise 1 scgtman BOOK: Beginning Visual Basic 2005 Databases ISBN: 978-0-7645-8894-5 3 May 16th, 2006 08:10 PM
Chapter 3 Exercise 3 Matt WAXON BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 3 July 4th, 2005 02:19 AM
Chapter 8, Exercise 4 cjo BOOK: Beginning ASP.NET 1.0 0 November 3rd, 2003 02:26 PM

All times are GMT -4. The time now is 04:29 PM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.