Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cannot see any PICT resource into dialogs using the new Interface Builder 3




On Oct 30, 2007, at 6:05 AM, email@hidden wrote:


Larry

thanks for the reply

sorry for my misunderstanding of OSX behaviour but
problem is I work most of the time with Windows
project then I port them to OSX.

In fact I need to move to OSX quickly backgrounds pictures
(inactive backgrounds for dialogs) and buttons with images
inside.

A Carbon project seems very limited: the resource
builder show me I can choose a rsrc PICT, cicn and icon
suite, no more, so...

True. Carbon has never been Apple's blessed technology, and back during WWDC they made it clear Cocoa is the future, so don't be surprised by limitations like this in IB, and don't expect Apple to do much about them.


I'm a bit confused because the nature
of the port (plain C++) forbid me to use Cocoa,

You can use C++ with Cocoa if you use Objective-C++, although you'd have to get information for that from someone else because I haven't done it myself. This is one of the reasons you shouldn't take discussions private after one response. You exclude too many smart people from the discussion when you do.


but Carbon seems to have support only these formats (in IB).

Yep.

Did you have an hint/suggestion on how I can put into a dialog
other file formats (eg.:png?) and how to have a wysiwyg preview in IB?

Not really. I load my images in code at runtime. It pretty easy to get the images from PNG files and such into the dialog, but I don't think you can get IB to display them. If someone else on the list knows he's welcome to jump in.


Larry


tyvm

Gio


----- Original Message ----- Da : Laurence Harris <email@hidden> A : "email@hidden" <email@hidden> Cc: email@hidden Oggetto : Re: Cannot see any PICT resource into dialogs using the new Interface Builder 3 Data : Tue, 30 Oct 2007 05:12:39 -0400

On Oct 30, 2007, at 4:55 AM, email@hidden wrote:

Hi at all, sorry for my english

I have a lot of XCode projects and they contains the
usual PICT (rsrc) files in the resources section.

'PICT' resources are considered "old school" and not desirable in Mac OS X because there are better graphic formats available now, so I wouldn't call them "usual." I would call them unusual at this point.

PICT IDs are present in NIB files and linked to buttons
and so on so I can
easily check any dialog/windows and watch a "wysiwyg"
preview in Interface Builder.
In short: the usual behaviour of any Carbon project.

Actually, probably not, because most Carbon applications at this point probably aren't using PICTs anymore.

Problem is:
I have moved these projects to XCode3.
Using Interface Builder 3, I cannot see any PICT.
Buttons, backgrounds  and so on are simply clear white.
Once compiled the software looks ok (images are ok, and
in their places).
The same NIB is "wysiwyg" using previous versions of
Interface Builder.

Its a pain to set up a new interface without having
preview of what
I'm doing so ... any help will be very appreciated !!

Since QuickDraw has been deprecated since 10.4, the IB team might have decided to remove support for that. Or, IB in Leopard doesn't know where to find the PICTs to display in your nibs. It's been so long since I did that I can't remember what I had to do to get IB to display those.

Larry


_______________________________________________ Do not post admin requests to the list. They will be ignored. Carbon-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/carbon-dev/email@hidden

This email sent to email@hidden


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

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.