• 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: Front-to-back ordering in IB changes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Front-to-back ordering in IB changes
      • From: "Kevin D.Smith" <email@hidden>
    • WWDC videos
      • From: Mike Zornek <email@hidden>
References: 
 >Re: Front-to-back ordering in IB changes (From: "Kevin D. Smith" <email@hidden>)

  • Prev by Date: Re: Getting the System languages
  • Next by Date: Sorting array : segmentation fault
  • Previous by thread: Re: Front-to-back ordering in IB changes
  • Next by thread: WWDC videos
  • Index(es):
    • Date
    • Thread