Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ".rsrc" file in Xcode 2.1 and pict control



You'll need to add a "ResourceManager Resources" build phase and then drag in the .rsrc file into it (and remove the .rsrc file from the "Copy Bundle Resources" build phase). Then the .rsrc file should be dealt with properly.

Scott

On Jun 29, 2005, at 8:30 AM, Kamran Kamkari wrote:

Hi all,

 

Does anybody know how we can load a pict data located “.rsrc” file to a “picture” control in Xcode? I know that I can use GetPicture() or Get1Resource() to get a handle of that picture and use SetControlData() to assign it to control, but the problem is that these APIs return null for picture handler.

I tried to create a Carbon App in Xcode 2.1 and added a “picture” control in its main window in IB, as soon as I assign the Resource ID of my picture file in inspector window in IB, my picture appears in control, but when I compile/run my program, the picture control doesn’t show that picture any more. The resource data file is in project under “Resources” but somehow it seems not accessible during runtime, anybody has any idea what could be wrong or missed here?

 

 

Regards,

Kamran

 

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/xcode-users/email@hidden

This email sent to email@hidden

References: 
 >".rsrc" file in Xcode 2.1 and pict control (From: Kamran Kamkari <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.