Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: Displaying icons in windows developed with InterfaceBuilder
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Displaying icons in windows developed with InterfaceBuilder



On Mar 31, 2007, at 6:02 AM, Walter wrote:

I've created a window in InterfaceBuilder that I would like to display a
custom icon in. In the "icon inspector" I have 4 choices: Icon Suite, cicn,
ICON & IconRef. All of these require a resource id except for IconRef.
IconRef requires a type & creator. I have no idea what a type & creator are
for.

For one of Apple's "standard" icons, or a specific application or document icon.


I currently have my icon stored with my resources in a .incs file. My .nib
file has some images in it, but I can't figure out how to add new images to
it. If I could add the icon, then I could use a resource id. I would
prefer to somehow point the icon control to my icon in the .icns file.


Is there an easy way to associate my icon to the icon in the interface
builder window or do I need to write custom code and manually load the icon?

You need to write code to load it. Cocoa nibs take care of it for you automagically, but Carbon nibs don't have that feature.


steve

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


References: 
 >Displaying icons in windows developed with InterfaceBuilder (From: Walter <email@hidden>)



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

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.