• 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: trackmouse problems in Leopard
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: trackmouse problems in Leopard


  • Subject: Re: trackmouse problems in Leopard
  • From: Moray Taylor <email@hidden>
  • Date: Mon, 30 Jun 2008 14:24:38 +0000 (GMT)

Yes! it did!

Thanks a lot, I'm not sure if I'd ever have figured hat one out.

Moray


--- On Sat, 28/6/08, Andy Kim <email@hidden> wrote:

> From: Andy Kim <email@hidden>
> Subject: Re: trackmouse problems in Leopard
> To: email@hidden
> Cc: email@hidden
> Date: Saturday, 28 June, 2008, 8:10 PM
> For a quick test, see if putting in the following in your
> cell
> subclass makes it work again:
>
> - (NSUInteger)hitTestForEvent:(NSEvent *)event inRect:
> (NSRect)cellFrame ofView:(NSView*)controlView
> {
> 	return NSCellHitContentArea | NSCellHitEditableTextArea |
>
> NSCellHitTrackableArea;
> }
>
> It might not be exactly what you want, but I'm pretty
> sure your
> solution is a good implementation of this method.
>
> Andy Kim
>
>
> On Jun 28, 2008, at 6:24 AM, Moray Taylor wrote:
>
> > Hi, hope someone can help...
> >
> > I have an app that uses a custom NSCell that
> implements the
> >
> > - (BOOL)trackMouse:(NSEvent *)theEvent
> inRect:(NSRect)cellFrame
> > ofView:(NSView *)controlView
> untilMouseUp:(BOOL)untilMouseUp
> >
> > method.
> >
> > In Tiger, this works just fine, if I build targeting
> the 10.5 API,
> > it does not work, the method does not get called at
> all, I can put
> > an NSLog right at the start, and it never happens.
> >
> > If I build targeting 10.4, it works great, even if the
> host machine
> > is running Leopard, so it seems its an API difference.
> >
> > If anyone can shed any light on this, I'd be
> eternally grateful!
> >
> > Thanks a lot
> >
> > Moray


      __________________________________________________________
Not happy with your email address?.
Get the one you really want - millions of new email addresses available now at Yahoo! http://uk.docs.yahoo.com/ymail/new.html
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please 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

  • Follow-Ups:
    • Re: trackmouse problems in Leopard
      • From: Corbin Dunn <email@hidden>
References: 
 >Re: trackmouse problems in Leopard (From: Andy Kim <email@hidden>)

  • Prev by Date: RE: Style Question (Robert Claeson)
  • Next by Date: Re: initWithFrame deosn't get called
  • Previous by thread: Re: trackmouse problems in Leopard
  • Next by thread: Re: trackmouse problems in Leopard
  • Index(es):
    • Date
    • Thread