• 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: First click in custom window?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: First click in custom window?


  • Subject: Re: First click in custom window?
  • From: Albert Andersen <email@hidden>
  • Date: Tue, 07 Nov 2006 16:52:29 -0800

On Tuesday, November 07, 2006, at 04:29PM, "Erik Buck" <email@hidden> wrote:
>Maybe ...
>
>acceptsFirstMouse:
>Overridden by subclasses to return YES if the receiver should be sent
>a mouseDown: message for an initial mouse-down event, NO if not.
>
>- (BOOL)acceptsFirstMouse:(NSEvent *)theEvent

Yep, that did it for the main window. Thanks! I was looking for properties of the window, but I guess the content view needs to handle it by implementing this method.

The improper dragging behavior in the TableView is still happening, though. I tried subclassing NSTableView to implement/override the acceptsFirstMouse method, and it is being called on the first mouse, and the first mouse click is calling the tableView's mouseDown method, but dragging moves the window instead of dragging a selection in the TableView. I've tried making the TableView the first responder when it accepts the FirstMouse, but that's not making it behave correctly.

 -Albert
 _______________________________________________
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

References: 
 >Re: First click in custom window? (From: Erik Buck <email@hidden>)

  • Prev by Date: Re: Polished metal.. and tabview!
  • Next by Date: Re: CGContextClip Works with Rect Paths, but not with Arc Paths
  • Previous by thread: Re: First click in custom window?
  • Next by thread: Re: Cocoa-dev Digest, Vol 3, Issue 1329
  • Index(es):
    • Date
    • Thread