Re: Front-to-back ordering in IB changes
Re: Front-to-back ordering in IB changes
- Subject: Re: Front-to-back ordering in IB changes
- From: "Kevin D.Smith" <email@hidden>
- Date: Mon, 18 Aug 2003 16:57:06 -0400
iPhoto actually does something different than Safari. Safari has
images for Forward, Backward, etc. These are set on square buttons
with images only. iPhoto uses a rounded button with no images
specified in the Nib. In addition, these buttons have text on them
that must be in front of the "plastic" image.
On Monday, August 18, 2003, at 03:14 PM, Cameron Hayne wrote:
On 18/8/03 12:05 PM, "Kevin D. Smith" <email@hidden> wrote:
What I'm
trying to do is emulate the iPhoto style tabs (i.e. Import, Organize,
Edit, Book). Now that I've opened iPhoto's Nib file, I see that they
are using normal buttons. Does anyone know iPhoto converts those
normal buttons into the plastic-looking button bar?
I haven't looked at the iPhoto nib, but I suspect that they merely use
images that supply the look they want. That is what Safari does with
its
forward & back buttons for example.
You can do this in Interface Builder by filling in the 'icon' slot in
the
Get Info window for your button. E.g. if the image file is Foo.tif, you
would type in myimage (no suffix needed). You probably also want to
supply
image files FooDisabled.tif and FooPressed.tif as well. There is a
slot for
the disabled 'icon' but not for the "pressed" but it seems to use the
naming
convention I illustrated above to find the image to use when the
button is
pressed. No doubt this is documented somewhere.
By the way, Panther will supply a Cocoa class that is intended for
this sort
of "switch"-ing. (See the WWDC videos available for free on Apple's
Develoepr site.)
--
Cameron Hayne (email@hidden)
Hayne of Tintagel
Kevin Smith
email@hidden
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.