Re: How to set NSButtonCell image and alternate image using InterfaceBuilder
Re: How to set NSButtonCell image and alternate image using InterfaceBuilder
- Subject: Re: How to set NSButtonCell image and alternate image using InterfaceBuilder
- From: Peter Teeson <email@hidden>
- Date: Sat, 16 Mar 2013 13:07:01 -0400
On 2013-03-16, at 12:24 PM, Keary Suska wrote:
> On Mar 16, 2013, at 9:02 AM, Peter Teeson wrote:
>> Anyway I had tried entering the names of the image files I added to the project
>> but nothing showed up in the display of the nib either in simulation or running.
>>
>> Can you be more helpful by describing how you are able to do it?
>
> So, the proper question is, why does IB not see the images that you added to your project?
> When images are properly added, they simply show and that usually works as expected.
>
> First make sure they are really missing, by checking the pop-up list in the button cell inspector.
Yes before I originally posted I did that and they were there.
> Should be easy as they show in alphabetic order.
> If they don't show in the list, it means IB doesn't know the location that you put them.
> Make sure you add them to the "Resources" folder/group of the project.
Ahah! Following your instructions I deleted them, added a Resources folder, re-added the images,
> You may also need to make sure you choose "copy if needed", so that the images are added to the project folder.
and selected copy as needed and it works now.
The two things that were different than my original attempt were
•adding a Resources folder and
•copy as needed checkbox.
I'll take another look in IB docs to see if this is documented.
Thank you for your help and patience.
_______________________________________________
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