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 / January 2004



Tip: Looking for answers? Try searching our database.

Do I have a corrupt Carbon.framework?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Sak Wathanasin - 03 Jan 2004 16:43 GMT
I'm working on a PP-based Carbon project (with CW 8.3) and was booted into
OS9 for debugging. I accidentally selected a Mach-O target in the project,
did a "make" and CW barfed in LCommander.cp complaining that it couldn't
find <Balloon.h>. This was a bit weird, so I tried the sample PP-with-Mach-O
projects and they produced the same error.

So I booted in OSX and the Mach-O targets built with no problems and
Balloons.h was found in

/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.f
ramework/Versions/A/Headers/

as one would expect. However, when I boot the Mac into OS9 and examine the
above folder, I can "see" every file except for Balloons.h and Balloons.r.
Here is an extract from a listing in MPW (newsreader may wrap long lines):

files -l    
OSX:System:Library:Frameworks:Carbon.framework:Versions:A:Frameworks:HIToolbo
x.framework:Versions:A:Headers:

AEInteraction.h                               12K avbstclinmwod 27/09/2003    
09:00 27/09/2003    09:00
Appearance.h                                 152K avbstclinmwod 27/09/2003    
09:00 27/09/2003    09:00
Appearance.r                                  40K avbstclinmwod 27/09/2003    
09:00 27/09/2003    09:00
CarbonEvents.h                               476K avbstclinmwod 27/09/2003    
09:00 27/09/2003    09:00
...etc...

When I examine file permissions etc, there did not seem to be any difference
between the files that were visible in OS9 and the 2 that weren't. Even
weirder, in OS9 I can see 2 files -- HITheme.h and MacHelp.r -- that I
cannot see in OSX (even as root):

ls -l
/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.f
ramework/Versions/A/Headers/

total 4320
-rw-r--r--  1 root  wheel   11691 Nov 20  2002 AEInteraction.h
-rw-r--r--  1 root  wheel  143046 Nov 20  2002 Appearance.h
-rw-r--r--  1 root  wheel   34351 Nov 20  2002 Appearance.r
-rw-r--r--  1 root  wheel   12568 Nov 20  2002 Balloons.h
-rw-r--r--  1 root  wheel   37430 Nov 20  2002 Balloons.r
...etc...
-rw-r--r--  1 root  wheel    3801 Nov 20  2002 HITextUtils.h
-rw-r--r--  1 root  wheel   41928 Nov 20  2002 HIToolbar.h
-rw-r--r--  1 root  wheel    2615 Nov 20  2002 HIToolbox.h
-rw-r--r--  1 root  wheel    1240 Nov 20  2002 HIToolbox.r
...etc...
-rw-r--r--  1 root  wheel   24849 Nov 20  2002 MacHelp.h
-rw-r--r--  1 root  wheel  139363 Nov 20  2002 MacTextEditor.h
-rw-r--r--  1 root  wheel  255215 Nov 20  2002 MacWindows.h
...etc...

But in OS9, they show up:

HITheme.h                                     96K avbstclinmwod 27/09/2003    
09:00 27/09/2003    09:00
MacHelp.r                                      4K avbstclinmwod 27/09/2003    
09:00 27/09/2003    09:00

and indeed I can open them with MPW and examine their contents.

This happens both on my iBook running 10.2.8 and my desktop G4 running
10.3.2 (but was an upgrade rather than a fresh install).

Does anyone else see this? If not, I guess a fresh re-install of OSX is in
order.

Signature

Sak Wathanasin
Network Analysis Limited
http://www.network-analysis.ltd.uk

Miro Jurisic - 03 Jan 2004 19:59 GMT
> I'm working on a PP-based Carbon project (with CW 8.3) and was booted into
> OS9 for debugging. I accidentally selected a Mach-O target in the project,
> did a "make" and CW barfed in LCommander.cp complaining that it couldn't
> find <Balloon.h>. This was a bit weird, so I tried the sample PP-with-Mach-O
> projects and they produced the same error.

That means that the IDE preferences differ between Mac OS 9 and Mac OS X; in
particular, the setting for the "OS X Volume" is different, and the two are
looking in two different places. One of those places has Balloons.h, and the
other doesn't. Most likely, one of those systems is Panther, and one Jaguar, as
Balloons.h was removed from the frameworks in Panther.

hth

meeroh

Signature

If this message helped you, consider buying an item
from my wish list: <http://web.meeroh.org/wishlist>

Sak Wathanasin - 03 Jan 2004 22:11 GMT
> That means that the IDE preferences differ between Mac OS 9 and Mac OS X; in
> particular, the setting for the "OS X Volume" is different, and the two are
> looking in two different places. One of those places has Balloons.h, and the
> other doesn't. Most likely, one of those systems is Panther, and one Jaguar,
> as Balloons.h was removed from the frameworks in Panther.

Never mind: I had the volumes mixed up as I had the iBook in TDM on my G4's
desktop. It's been one of those days... Everything builds now, CFM, Mach-O
in 9 & X. Thanks for responding.

Signature

Sak Wathanasin
Network Analysis Limited
http://www.network-analysis.ltd.uk

 
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.