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 / September 2003



Tip: Looking for answers? Try searching our database.

CW9 Packager

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Carl R. Osterwald - 04 Sep 2003 17:33 GMT
CW9 arrived yesterday, and I converted a project over.  The new Package
pane is nice, it eliminates guessing and hoping everything is in the
right place.  So far the hardest adjustment is not using cmd-M for
Make, which has been around forever.

However, it looks like I need to repeat a feature request that I
remember asking for with CW8.  Please, when Make is used, have the IDE
change the mod date on the folder.  I know, there are ways to do it
manually, but this is something that should be done automatically.

-=-=-=-=-
MW Ron - 04 Sep 2003 18:13 GMT
>CW9 arrived yesterday, and I converted a project over.  The new Package
>pane is nice, it eliminates guessing and hoping everything is in the
>right place.  So far the hardest adjustment is not using cmd-M for
>Make, which has been around forever.

Can you remap it,  I know it is a Apple Style issue.

>However, it looks like I need to repeat a feature request that I
>remember asking for with CW8.  Please, when Make is used, have the IDE
>change the mod date on the folder.  I know, there are ways to do it
>manually, but this is something that should be done automatically.

Do you mean when you make from the IDE or you use the utility Make as in
a command line.  We don't create Make.

Ron

Signature

        CodeWarrior Development Studio for Macintosh v9
Enhance Your Productivity and Shorten your Development Cycles
                <http://store.metrowerks.com/>
       Sales and Support 512-996-5300   800-377-5416    
Ron Liechty - MWRon@metrowerks.com - http://www.metrowerks.com

Steven Fisher - 04 Sep 2003 19:03 GMT
> Can you remap it,  I know it is a Apple Style issue.

What's the new key for Make in 9?

It'll be a while before I can upgrade -- I need to migrate my Palm stuff
out of Codewarrior first -- but I might as well start training my
fingers now.
Carl R. Osterwald - 04 Sep 2003 20:54 GMT
> > Can you remap it,  I know it is a Apple Style issue.
>
> What's the new key for Make in 9?

cmd-opt-K

-=-=-=-=-
MW Ron - 04 Sep 2003 21:47 GMT
>> Can you remap it,  I know it is a Apple Style issue.
>
[quoted text clipped - 3 lines]
>out of Codewarrior first -- but I might as well start training my
>fingers now.

option command k is Make

I just use F7 myself

Ron

Signature

        CodeWarrior Development Studio for Macintosh v9
Enhance Your Productivity and Shorten your Development Cycles
                <http://store.metrowerks.com/>
       Sales and Support 512-996-5300   800-377-5416    
Ron Liechty - MWRon@metrowerks.com - http://www.metrowerks.com

Steven Fisher - 05 Sep 2003 01:36 GMT
> option command k is Make
>
> I just use F7 myself

Oook. Yeah. I'll pick some other key I don't use. That's a bit of a
finger full for my second most used key combination (right after save).
Carl R. Osterwald - 04 Sep 2003 20:55 GMT
> >CW9 arrived yesterday, and I converted a project over.  The new Package
> >pane is nice, it eliminates guessing and hoping everything is in the
> >right place.  So far the hardest adjustment is not using cmd-M for
> >Make, which has been around forever.
>
> Can you remap it,  I know it is a Apple Style issue.

Nah, not worth it, I'll just adapt.

> >However, it looks like I need to repeat a feature request that I
> >remember asking for with CW8.  Please, when Make is used, have the IDE
[quoted text clipped - 3 lines]
> Do you mean when you make from the IDE or you use the utility Make as in
> a command line.  We don't create Make.

I mean make from the IDE, cmd-opt-K.

-=-=-=-=-
David Phillip Oster - 05 Sep 2003 05:17 GMT
> However, it looks like I need to repeat a feature request that I
> remember asking for with CW8.  Please, when Make is used, have the IDE
> change the mod date on the folder.  I know, there are ways to do it
> manually, but this is something that should be done automatically.

How about a shell script, run via the shell post-linker, that uses the
Unix

touch

command to set the date on the folder?

(See "man touch" for more information.) It has been recently mentioned
here that shell post-linker scripts only run if the build is otherwsie
successful.
Carl R. Osterwald - 05 Sep 2003 14:53 GMT
> > However, it looks like I need to repeat a feature request that I
> > remember asking for with CW8.  Please, when Make is used, have the IDE
[quoted text clipped - 11 lines]
> here that shell post-linker scripts only run if the build is otherwsie
> successful.

I'll give this a try.

-=-=-=-=-
Chinh Nguyen - 24 Sep 2003 16:36 GMT
> However, it looks like I need to repeat a feature request that I
> remember asking for with CW8.  Please, when Make is used, have the IDE
> change the mod date on the folder.  I know, there are ways to do it
> manually, but this is something that should be done automatically.

I second this request.  I had to write a post-link shell script that
touched the folder.  The problem with this approach is that the IDE
_always_ relinks even if everything is up to date.  For example, I like
to hit cmd-R to run my app and have to sit through the IDE relinking
everything even though nothing has changed.

-Chinh Nguyen
cnguyen@stata.com
MW Ron - 24 Sep 2003 18:35 GMT
>> However, it looks like I need to repeat a feature request that I
>> remember asking for with CW8.  Please, when Make is used, have the IDE
[quoted text clipped - 6 lines]
>to hit cmd-R to run my app and have to sit through the IDE relinking
>everything even though nothing has changed.

Please drop me a note and explain this further, I want to be sure to get
everything correctly for this suggestion.

Ron

Signature

        CodeWarrior Development Studio for Macintosh v9
Enhance Your Productivity and Shorten your Development Cycles
                <http://store.metrowerks.com/>
       Sales and Support 512-996-5300   800-377-5416    
Ron Liechty - MWRon@metrowerks.com - http://www.metrowerks.com

Larry Gerndt - 24 Sep 2003 20:23 GMT
>>> However, it looks like I need to repeat a feature request that I
>>> remember asking for with CW8.  Please, when Make is used, have the IDE
[quoted text clipped - 9 lines]
> Please drop me a note and explain this further, I want to be sure to get
> everything correctly for this suggestion.

I third the request, for this reason:  the LSGetApplicationForInfo API uses
the mod date of the folder as part of its logic in determining which version
to return when there are multiple versions of the application on disk.
Supposedly the mod date is only used to differentiate the two when the
version numbers are the same, though I'm not so sure the API is that
reliable.  All I know for sure is that an Apple engineer told me personally
that the mod date of the folder is indeed a factor.  So I do think CW should
touch the mod date of the folder if anything inside the folder is new.
MW Ron - 25 Sep 2003 03:59 GMT
>I third the request, for this reason:  the LSGetApplicationForInfo API uses
>the mod date of the folder as part of its logic in determining which version
[quoted text clipped - 4 lines]
>that the mod date of the folder is indeed a factor.  So I do think CW should
>touch the mod date of the folder if anything inside the folder is new.

I understand this a lot better now and I know there is some discussion
about this internally.  

Ron

Signature

        CodeWarrior Development Studio for Macintosh v9
Enhance Your Productivity and Shorten your Development Cycles
                <http://store.metrowerks.com/>
       Sales and Support 512-996-5300   800-377-5416    
Ron Liechty - MWRon@metrowerks.com - http://www.metrowerks.com

Chinh Nguyen - 25 Sep 2003 16:06 GMT
> >I second this request.  I had to write a post-link shell script that
> >touched the folder.  The problem with this approach is that the IDE
[quoted text clipped - 4 lines]
> Please drop me a note and explain this further, I want to be sure to get
> everything correctly for this suggestion.

You mentioned in another post that you understand it better now but
just to be sure, the modification date of the application package does
not get updated on rebuilds.  You have to add a post-linker shell
script that does a touch on the package.  Besides the obvious reason of
just knowing when was the last time your app was built, I also sort my
Finder view of my app's folder by modification date so that I can see
my most recent builds at the top among everything else.

The problem with the post-linker shell script approach is that it
always relinks (whereas before it would do nothing) if nothing has
changed.  This is annoying if you like to run your app from the IDE and
always have to sit through relinking when it doesn't need to.

Even if you guys remove the necessity for the touch shell script, the
always relink when there's a shell script behavior seems odd.

-Chinh Nguyen
cnguyen@stata.com
Chinh Nguyen - 25 Sep 2003 19:36 GMT
I seem to have found a bug where the environment variable
$MW_OUTPUT_NAME has the incorrect value.  My project builds properly
and the package is saved to the correct location and with the proper
target name but $MW_OUTPUT_NAME has the actual project name, not output
name.  If I change the target settings temporarily and change them
back, $MW_OUTPUT_NAME has the correct value for a few more builds and
then gets set to the wrong value again.

Also, why is it when the target name is, for example, Stata.app, that
$MW_OUTPUT_NAME is just Stata?  In my shell script, I have to use
$MW_OUTPUT_NAME.app.

I've also observed that $MW_OUTPUT_FILE==$MW_OUTPUT_DIRECTORY.  I end
up having to use "$MW_OUTPUT_DIRECTORY/$MW_OUTPUT_NAME.app" which works
(when the IDE gets $MW_OUTPUT_NAME right) but seems odd when
$MW_OUTPUT_FILE seems like the correct thing to use.

-Chinh Nguyen
cnguyen@stata.com
MW Ron - 25 Sep 2003 20:05 GMT
>I seem to have found a bug where the environment variable
>$MW_OUTPUT_NAME has the incorrect value.  My project builds properly
[quoted text clipped - 12 lines]
>(when the IDE gets $MW_OUTPUT_NAME right) but seems odd when
>$MW_OUTPUT_FILE seems like the correct thing to use.

Thanks,  I'll pass this on to engineering and let you know what they say.

Ron

Signature

        CodeWarrior Development Studio for Macintosh v9
Enhance Your Productivity and Shorten your Development Cycles
                <http://store.metrowerks.com/>
       Sales and Support 512-996-5300   800-377-5416    
Ron Liechty - MWRon@metrowerks.com - http://www.metrowerks.com

MW Ron - 26 Sep 2003 22:03 GMT
>However, it looks like I need to repeat a feature request that I
>remember asking for with CW8.  Please, when Make is used, have the IDE
>change the mod date on the folder.  I know, there are ways to do it
>manually, but this is something that should be done automatically.

Hopefully an upcoming patch will put a change in the ide to make sure
whenever anything inside the package changes, the top level folder of
the package has its date bumped.

Ron

Signature

        CodeWarrior Development Studio for Macintosh v9
Enhance Your Productivity and Shorten your Development Cycles
                <http://store.metrowerks.com/>
       Sales and Support 512-996-5300   800-377-5416    
Ron Liechty - MWRon@metrowerks.com - http://www.metrowerks.com

Carl R. Osterwald - 29 Sep 2003 14:54 GMT
> >However, it looks like I need to repeat a feature request that I
> >remember asking for with CW8.  Please, when Make is used, have the IDE
[quoted text clipped - 4 lines]
> whenever anything inside the package changes, the top level folder of
> the package has its date bumped.

Excellent, thanks Ron.

-=-=-=-=-
 
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



©2009 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.