Re: How to put Pict image in Nib?
Re: How to put Pict image in Nib?
- Subject: Re: How to put Pict image in Nib?
- From: Steve Christensen <email@hidden>
- Date: Fri, 11 Jul 2008 18:07:34 -0700
On Jul 11, 2008, at 5:47 PM, Denis @ TheOffice wrote:
Can I put a pict image in my Nib or project, then how?
Perhaps there is such a sample somewhere?
The general answer is that images no longer go in a nib file, but are
instead placed in the bundle's Resources folder like all other
resources. Also, if you can help it, you probably shouldn't be using
PICT images anymore (assuming you're speaking of a legacy QuickDraw
picture). It's better to be using TIFF, PNG, JPG, etc.
If you're working with a Cocoa nib, add the image(s) you'll be using
in the nib to your target. Then when you open the nib in IB and
create, for example, an image view, you can just type in the name of
the image (without the extension) and it will be found both by IB and
when the nib is loaded at runtime.
As I recall, if you're working with a Carbon nib you'll need to write
some code to get the image's path (using CFBundle functions), then
load the image and associate it with the view.
steve
Attachment:
PGP.sig
Description: PGP signature
_______________________________________________
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