How to make resource file (.rsrc) for Carbon’s Xcode project nib to use

Posted on Updated on

  1. use Rezilla or ResEdit to edit resource
    1. create data fork resource(example: type=PICT)
    2. copy image into clipboard (open a pict file, and press command-c)
    3. open the fork data resource and press command-v to paste the image from clipboard to the data resource
    4. save the .rsrc file
  2. add resource to your Xcode project
    1. Project/ add to project/ select the .rsrc file
    2. build
    3. check whether the .rsrc file exist in the target/Copy Boundle Resource build phase
  3. use the resource in nib
    1. open the nib file(don’t close Xcode)
    2. check the image tab you should see the PICT image exist it it.
  4. check if there’s a .rsrc file with the name as ExecutableName located in XXXX.app/Contents/MacOS/Resources/
廣告

2 thoughts on “How to make resource file (.rsrc) for Carbon’s Xcode project nib to use

    user said:
    一月 10, 2007 at 9:18 上午

    how to create a PICT resource?

    Cotton responded:
    一月 10, 2007 at 10:15 上午

    Re: how to create a PICT resource?
    I just open an image for example abc.jpg by the applicaation Preview, you can just double click the image file, Preview will be automatically launched. Then Command-C to copy the image into clipboard, and follow the steps 1.1 and 1.2. So, you can have a resource file with PICT resource.
    If you want to know how to create a single file PICT as the resource. I think you can convert the images files from certain image format to MAC PICT by photoshop.

發表迴響

在下方填入你的資料或按右方圖示以社群網站登入:

WordPress.com Logo

您的留言將使用 WordPress.com 帳號。 登出 / 變更 )

Twitter picture

您的留言將使用 Twitter 帳號。 登出 / 變更 )

Facebook照片

您的留言將使用 Facebook 帳號。 登出 / 變更 )

Google+ photo

您的留言將使用 Google+ 帳號。 登出 / 變更 )

連結到 %s