• 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
Torturing NSToolbar
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Torturing NSToolbar


  • Subject: Torturing NSToolbar
  • From: Steve Ivy <email@hidden>
  • Date: Sat, 9 Nov 2002 01:46:01 -0700

I'm working on a utilities app that basically consists of an NSToolbar and a form. The user enters some data in the form, and a new toolbar item is created and added to the toolbar. This is all well and good, and the new item is available in the "Customize..." panel and everything. What I'm up against is I need some way to allow the user to edit an item, and delete an item.

I first thought that it would be possible to assign a menu to the toolbar item (containing "Edit this item"/"Delete Item"), but in fact it appears that neither NSToolbar nor NSToolbarItem are Views, therefore they have no menu. (Also, the toolbar's menu is shown no matter where you click in the toolbar.) So I'm a bit at a loss as to how to allow the user to select an item to edit or delete.

I know that I'm perhaps stretching NSToolbar beyond its intended usage, but isn't that the whole idea? ;)

Any suggestions (other than those along the lines of "write your own view") would be appreciated.

--Steve
_______________________________________________
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.

  • Prev by Date: NSView and setNeedsDisplayInRect:rect
  • Next by Date: Re: Trouble making a table become first responder in key loop
  • Previous by thread: NSView and setNeedsDisplayInRect:rect
  • Next by thread: Re: Trouble making a table become first responder in key loop
  • Index(es):
    • Date
    • Thread