• 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
NSCell, -mouseDownFlags, and NSPeriodicMask
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSCell, -mouseDownFlags, and NSPeriodicMask


  • Subject: NSCell, -mouseDownFlags, and NSPeriodicMask
  • From: Rob Rix <email@hidden>
  • Date: Wed, 22 Jan 2003 13:44:15 -0500

Hello all, I'm back to the list after quite a while away.

In my app, I've got a palette of tools in a utility window, stored in a matrix. This works quite nicely.
I use -sendActionOn: to add NSPeriodicMask to the list. This also works quite nicely.

The problem is, I want to be able to detect--in the action method called by the cells--whether the event that triggered the message send was periodic or mouse-up, because I want to pop up a little tear-off palette a la Photoshop for tool groups.
After looking through the docs and headers, I noticed that the shift, control, et cetera masks are done with different values than the event masks, so I figured it was worth seeing if -mouseDownFlags would have the bit for NSPeriodicMask returned along with it... but no luck. It detects shift and control key presses fine, but NSCell isn't returning the event mask.

Is there any way to get the type of event that triggered the action from NSCell? If not, how come?

Thanks very much,

-- Robout

DO NOT LEAVE IT IS NOT REAL
_______________________________________________
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: NSCell, -mouseDownFlags, and NSPeriodicMask
      • From: j o a r <email@hidden>
  • Prev by Date: Posting Notification Question
  • Next by Date: Only one loaded executable...How ?
  • Previous by thread: Re: Posting Notification Question
  • Next by thread: Re: NSCell, -mouseDownFlags, and NSPeriodicMask
  • Index(es):
    • Date
    • Thread