Re: Creating Carbon bevel picture buttons w/Interface Builder
Re: Creating Carbon bevel picture buttons w/Interface Builder
- Subject: Re: Creating Carbon bevel picture buttons w/Interface Builder
- From: email@hidden
- Date: Thu, 20 Apr 2006 17:39:33 -0500
Quoting Isaac Wankerl <email@hidden>:
On 4/20/06, email@hidden <email@hidden> wrote:
Found this old message:
<http://lists.apple.com/archives/xcode-users/2004/May/msg00167.html>
and will be dealing with the same issue soon.
I was wondering, nearly two years later, if any progress has been
made on this
front.
The bug report was filed under rdar://3653738
I've tried this myself, but haven't even been able to get a PNG
image, which is
in the same target (there is only one target) as the nib file, in the X-Code
project to show up in the Images Tab. Any reason why this wouldn't
be working
for a carbon project?
Why not just load the URL for PNG file using the CFBundle services,
then create a CGImageRef with CGImageCreateWithPNGDataProvider() and
then use that image with the bevel button?
Well, considering this is apparently the only option at the moment, the only
answer I can provide to your question is that I have no choice but to do what
you suggest.
The reason, however, that it would be useful for Interface Builder to
do this is
because it is simply "nice" to be able to see how things will generally look
before any code gets written.
Such things have been possible for years with cicns, resource PICTs, etc. with
applications similar to IB. It would simply be nice if it would work with PNGs
as well.
Furthermore, the IB documentation states with respect to the Images Tab:
-----
The Images pane lets you view all the graphic (.tiff) files that your nib file
can use. You can drag an image onto an interface item such as a button or
graphic pane to add that image to the item.
Generally, the images are not stored in the nib file itself. Instead,
the Images
pane displays images that are in the same Project Builder target as the
nib file
is in. If the nib file is in multiple targets, Interface Builder includes only
those images that are in all those targets.
-----
So, it apparently works in some case, but I am not certain what that case is.
With a Carbon X-Code project, PNG images do not show up the Images Tab even
though the nib and PNG images are in the same target.
_______________________________________________
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