• 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: -mouseDownFlags while dragging over NSCells returns 0
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: -mouseDownFlags while dragging over NSCells returns 0


  • Subject: Re: -mouseDownFlags while dragging over NSCells returns 0
  • From: Andreas Mayer <email@hidden>
  • Date: Wed, 4 Apr 2007 04:57:39 +0200


Am 03.04.2007 um 22:28 Uhr schrieb Roland Torres:

Now I need to color the cells by clicking and dragging the mouse over them

I'm not sure NSMatrix is the right choice here. Maybe you should create your own custom view. You can then handle all mouse events any way you like. It shouldn't be too much work, since you can keep your cells to do the drawing.


Is there some way to know, when an NSCell's -drawWithFrame:inView: method gets invoked, that it's in a mouseDown event?

Set a flag in the view on -mouseDown: and check it from the cell's drawing code.



Andreas _______________________________________________

Cocoa-dev mailing list (email@hidden)

Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >-mouseDownFlags while dragging over NSCells returns 0 (From: Roland Torres <email@hidden>)

  • Prev by Date: Re: Cocoa "InternetConfig? Need to add a protocol like foo:// and handler app
  • Next by Date: Unions in Obj-C Code
  • Previous by thread: -mouseDownFlags while dragging over NSCells returns 0
  • Next by thread: dynamically adding value transformer
  • Index(es):
    • Date
    • Thread