• 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
Objective-C: search project for text skips include'ed header file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Objective-C: search project for text skips include'ed header file


  • Subject: Objective-C: search project for text skips include'ed header file
  • From: Paul Archibald <email@hidden>
  • Date: Mon, 9 Jun 2008 11:40:27 -0700

Comrades:

I am working on an ObjectiveC/Cocoa project, in Xcode 2.5. I was doing some re-factoring of the code, and using the compiler to kind errors. One of the errors was missing definitions for some constants. WHen I did a project search, I could not find the definitions. Then I looked in the directory for the app, and I see a header dfile, and I open it, and there are a bunch o definitions, and sure enough, the ones that the compiler was complaining about are right there. THen, I look at some of the other project files, thinking "how can the code have ever worked if these definitions were never included?", and I see that indeed, the mystery header has been #include'ed in the source code. Huhh? 

So, Although I think I can deal with the coding part of this, I am puzzled as to why the text search could not find a source file to inspect? I even did a "find selected text" search starting with that very header file. No dice, search does not find the definition in the #include'ed header. 

I am new to ObjC and Cocoa, but I have used Xcode a lot, and I have never had this happen. Could it have something to do with IBuilder? Do NIB file contain any definitions or codelike stuff? I see some class info in the NIB, but I don't see anything that looks like a #define or a const(ant).

the definitions look kind of like this (in the mystery header":
#define kDataFiles      @"kDataFiles"


(My Java API Lookup is totally useless, but that's another thread.)
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Objective-C: search project for text skips include'ed header file
      • From: Fritz Anderson <email@hidden>
  • Prev by Date: Re: Xcode and Time Machine
  • Next by Date: Re: Objective-C: search project for text skips include'ed header file
  • Previous by thread: Re: Xcode and Time Machine
  • Next by thread: Re: Objective-C: search project for text skips include'ed header file
  • Index(es):
    • Date
    • Thread