• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Creating Carbon bevel picture buttons w/Interface Builder
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >Re: Creating Carbon bevel picture buttons w/Interface Builder (From: email@hidden)
 >Re: Creating Carbon bevel picture buttons w/Interface Builder (From: "Isaac Wankerl" <email@hidden>)

  • Prev by Date: Re: error for object : incorrect checksum for freed object
  • Next by Date: OT: "Electrical interference" builds up on DSL line.
  • Previous by thread: Re: Creating Carbon bevel picture buttons w/Interface Builder
  • Next by thread: Why no execinfo.h?
  • Index(es):
    • Date
    • Thread