• 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
Pages-style table drop-down menu
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Pages-style table drop-down menu


  • Subject: Pages-style table drop-down menu
  • From: John Brownlow <email@hidden>
  • Date: Mon, 11 Apr 2005 11:22:40 -0400

In Pages the styles drawer has a column which works as follows.

If the current row is selected, it shows a drop-down arrow.

If the current row is not selected, mousing over the cell shows a drop-down arrow.

Clicking on a cell in the column does not select the row, but pops up a menu which allows you to perform various actions on the style in the row you are clicking on, while remaining deselected.

This is actually a very compact and clever design (I say this having tried out several alternatives!) but what is the simplest and cleanest way of implementing it? I guess the column should be filled with ImageCells... but how to pop up the appropriate menu, or change the highlighted state? Or should the column be filled with NSButtons... and if so, how?

(As a challenge am trying to do as much of this stuff with bindings and NIB configuration as I can, rather than writing glue code... having poked around in the Pages NIB however this is not the approach they took ... probably for pre-10.3 compatibility).

--
John Brownlow
Deep Fried Films, Inc

http://www.johnbrownlow.com
http://www.pinkheadedbug.com

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: Re: scrolling an NSImageView leaves tracks
  • Next by Date: Re: creating a target dependency in an Xcode project
  • Previous by thread: Re: Trouble with sheets
  • Next by thread: Launched window not activating
  • Index(es):
    • Date
    • Thread