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: Cameron Hayne <email@hidden>
- Date: Mon, 18 Aug 2003 15:14:45 -0400
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
_______________________________________________
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.