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.) |