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

Re: dragging from NSToolbar


  • Subject: Re: dragging from NSToolbar
  • From: j o a r <email@hidden>
  • Date: Thu, 23 Jan 2003 22:26:10 +0100

You can't do that. Regardless of if you use a standard image-type or view-type toolbar item, the view used to display the toolbar item label in text-only toolbar display mode is a private class and you cannot (without some serious runtime hacks) get the mouse events needed to perform drag operations.
What you might do is subclass NSToolbar in your application to not allow the text-only display mode, and so always have the drag capabilities available.

j o a r

On Thursday, Jan 23, 2003, at 18:54 Europe/Stockholm, olivier wrote:

Now i'm able to drag the image of the icon from the toolbar, how can i drag the text of the item in case the toolbar is set to text only.
_______________________________________________
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.

References: 
 >dragging from NSToolbar (From: olivier <email@hidden>)

  • Prev by Date: Small resize icon
  • Next by Date: Compare text / diff tools with Cocoa?
  • Previous by thread: dragging from NSToolbar
  • Next by thread: Drag to Finder
  • Index(es):
    • Date
    • Thread