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 / Mac Programming / May 2005



Tip: Looking for answers? Try searching our database.

Carbon Image Problem

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
cgtalker - 27 May 2005 13:23 GMT
Hi People!

Im new around here...

Im having alittle trouble with my carbon app (the first one ive ever
built!)

Ive built it, and its got on image on it..Ive saved it as an pict
resource file in photoshop, and its displaying nicely in IB..however
when I build the app..the image is not there..

Thanx in advanced For your help

Alex

* posted via http://www.mymac.ws
* please report abuse to http://xinbox.com/mymac
cgtalker - 27 May 2005 16:14 GMT
sorry for the **bump** :(
I know its bad!

but I really need an answer to this question please

I am at your mercy

Thank You

Cheers
> Alex

* posted via http://www.mymac.ws
* please report abuse to http://xinbox.com/mymac
Chris Baum - 27 May 2005 19:54 GMT
> Ive built it, and its got on image on it..Ive saved it as an pict
> resource file in photoshop, and its displaying nicely in IB..however
> when I build the app..the image is not there..

Is your resoruce named and located properly in your app's bundle?

Anatomy of a Modern Bundle:

http://developer.apple.com/documentation/CoreFoundation/Conceptual/CFBun
dles/Concepts/BundleAnatomy.html
cgtalker - 27 May 2005 22:53 GMT
> Is your resoruce named and located properly in your app's bundle?

> Anatomy of a Modern Bundle:

> http://developer.apple.com/documentation/CoreFoundation/Conceptual/CFBun
> dles/Concepts/BundleAnatomy.html

Yeah its in there, however when i open the nib in built application
(show pack content)..the image is not displayed..it has a broken
pic sign..so im thinking its summit wrong with my image..

I saved it in PS as a pict resource..however is it saves a an .rsr
file..so i put an c on the end or the extension to form an .rsrc
file..iss this what causes the problem?? if so how would i do it
properly?..

Also when saving in PS a second screen apears with an ID field and a
compression field..do i need to assign it an ID in Ps or summit?

Thank For your Help

Alex

* posted via http://www.mymac.ws
* please report abuse to http://xinbox.com/mymac
Chris Baum - 28 May 2005 00:52 GMT
> Also when saving in PS a second screen apears with an ID field and a
> compression field..do i need to assign it an ID in Ps or summit?

Never used PS to make a pict resource but yet the ID is going to have
to match the id you specified in IB.  You didn't tell me, but I'm
guessing you used the Picture control in IB?  Click it and switch to
the attributes pane and you'll see the res id there.  You can use
ResEdit to manage the PICT resources/id's.

But here is some advice if you can require 10.2+:  In PS, save the
images as png then use an HIImageView in IB with
CGImageCreateWithPNGDataProvider to set the view.
 
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.