Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
General
GeneralPortable MacsHardwareNetworking
Applications
Mac ApplicationsEudoraFirefox / MozillaInternet ExplorerOutlook ExpressMS OfficeEntourageExcelPowerPointWordVirtual PCMedia PlayerOther MS Products
Programming
Mac ProgrammingCodeWarriorPerl
Country Specific
Australian Mac GroupUK Mac Group

Mac Forum / Programming / CodeWarrior / May 2005



Tip: Looking for answers? Try searching our database.

Definition search in CW9.5

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Dmitry Markman - 20 May 2005 07:15 GMT
Hi, maybe it's a stupid question
But how I can setup CW 9.5 that it will search for function's and macros
definitions
For example I want to find FOUR_CHAR_CODE macro definition
I remember in 8.3 all macros and system function were highlighted blue
But in 9.5 all highlighting is gone
What I have to do to index all headers

Interesting that sometimes I can see it in 9.5
But after compilation it disappears

Thanks
MW Ron - 20 May 2005 19:52 GMT
>Hi, maybe it's a stupid question
>But how I can setup CW 9.5 that it will search for function's and macros
[quoted text clipped - 8 lines]
>
>Thanks
It sounds like the preferences were changed when you updated to 9.5.

check your target and see if you have the language parser or the
compiler in the Build Extras  settings .  If it is the compiler and you
have a precompiled header then those in the precompiled header won't
show up.  If it is language parser they should show up.

A trick if yu want the compiler setting is to go to the Find Libraries  
in the Other Metrowerks Tools folder and with the file carbonlib in that
add it to your colorized  list.  It will then list the Carbon functions.
etc.

Ron

Signature

Metrowerks Community Forum is a free online resource for developers
to discuss CodeWarrior topics with other users and Metrowerks' staff
       --   http://www.metrowerks.com/community  --

Ron Liechty - MWRon@metrowerks.com - http://www.metrowerks.com

Dmitry Markman - 21 May 2005 03:46 GMT
Thank you very much for your answer

Here is what I did
1. I had Language parser options, so I switched to the compiler pressed
button save
2. immediately after that I switched back to the Language parser and pressed
button save. I saw as at the bottom status line info about parsing headers
After parsing was finished I was able to see all carbon functions coloring
And everything was fine
3. I built my project and after that all coloring gone
And I wasn't able to find definitions too

I trashed Metrowerks folder from ~/Library/Preferences folder
But that didn't help

I did that trick with carbonlib so now I can see coloring but I still can
not find definition: I can see but I can not touch :-(

Thanks again for your answer

On 5/20/05 2:52 PM, in article mwron-64E574.14523020052005@news.newsguy.com,

>> Hi, maybe it's a stupid question
>> But how I can setup CW 9.5 that it will search for function's and macros
[quoted text clipped - 21 lines]
>
> Ron
larry@skytag.com - 21 May 2005 15:03 GMT
It's obviously a bug in CW, and it's been a bug for a long time.
Sometimes you lose the coloring and go-to capability and it usually
comes back at some point for no apparent reason. At least that's how it
works for me.

Larry
Dmitry Markman - 22 May 2005 02:32 GMT
I think I know workaround for that issue:

If I put #include into my source file (I do have precompiled headers,
So I didn't have includes in my source file), then I got coloring
And ability to find definitions

For example, I added the following includes to my file:
#include <IOKit/IOKitKeys.h>
#include <IOKit/IOKitLib.h>
#include <IOKit/IOBSD.h>
#include <ApplicationServices/ApplicationServices.h>
#include <CoreFoundation/CoreFoundation.h>
#include <CoreFoundation/CFBase.h>
#include <CoreFoundation/CFString.h>

And all related functions and data type became blue and I could right click
and  go to the definition



Thanks

On 5/21/05 10:03 AM, in article
1116684182.346272.28750@g49g2000cwa.googlegroups.com, "larry@skytag.com"

> It's obviously a bug in CW, and it's been a bug for a long time.
> Sometimes you lose the coloring and go-to capability and it usually
> comes back at some point for no apparent reason. At least that's how it
> works for me.
>
> Larry
MW Ron - 22 May 2005 19:48 GMT
>I think I know workaround for that issue:
>
[quoted text clipped - 13 lines]
>And all related functions and data type became blue and I could right click
>and  go to the definition

Hmm,  I wonder if the require framework style includes is different in
the precompiled header and  your project  if that has something to do
with it.

Glad you have it working.

Ron

>Thanks
>
[quoted text clipped - 7 lines]
>>
>> Larry

Signature

Metrowerks Community Forum is a free online resource for developers
to discuss CodeWarrior topics with other users and Metrowerks' staff
       --   http://www.metrowerks.com/community  --

Ron Liechty - MWRon@metrowerks.com - http://www.metrowerks.com

MW Ron - 22 May 2005 19:44 GMT
>It's obviously a bug in CW, and it's been a bug for a long time.
>Sometimes you lose the coloring and go-to capability and it usually
>comes back at some point for no apparent reason. At least that's how it
>works for me.
>
>Larry

Hi Larry,

I don't know what this is,  I don't think it is a bug in CW, it sounds
like a conflict of some sort with another TSR or something.  Do you have
any special software running.  desktop enhancers,  spell checkers ,
quick keys  etc?

Ron

Signature

Metrowerks Community Forum is a free online resource for developers
to discuss CodeWarrior topics with other users and Metrowerks' staff
       --   http://www.metrowerks.com/community  --

Ron Liechty - MWRon@metrowerks.com - http://www.metrowerks.com

larry@skytag.com - 23 May 2005 08:04 GMT
No desktop enhancers, no spelling checkers, no QuickKeys. I just think
CW needs to go through some sequence of events before it gets
everything figured out. I consider it a bug, but I've never pinned down
exactly when it happens, in part because it only happens in conjunction
with having to recompile my entire project (but not every time I do
that), and that takes too long for me to spend a lot of time trying
different scenarios to come up with a reproducible case. Eventually it
fixes itself, but I can't tell you what triggers that either.

Larry
MW Ron - 23 May 2005 15:32 GMT
>No desktop enhancers, no spelling checkers, no QuickKeys. I just think
>CW needs to go through some sequence of events before it gets
[quoted text clipped - 4 lines]
>different scenarios to come up with a reproducible case. Eventually it
>fixes itself, but I can't tell you what triggers that either.

The only possible way to find this, if it is a bug, is for us to get a
hundred reports and see if we can narrow it down to some common
denominator.   Something that happens on occasion and is only reported
by one person is totally impossible to find.  I'm not saying it is not a
bug,  but it may be unique to a limited number of users.

Ron

Signature

Metrowerks Community Forum is a free online resource for developers
to discuss CodeWarrior topics with other users and Metrowerks' staff
       --   http://www.metrowerks.com/community  --

Ron Liechty - MWRon@metrowerks.com - http://www.metrowerks.com

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.