Re: trackmouse problems in Leopard

2008-06-30 Thread Corbin Dunn


On Jun 30, 2008, at 7:24 AM, Moray Taylor wrote:


Yes! it did!

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


I highly recommend reading the AppKit release notes, which covers  
things like this problem.


http://developer.apple.com/releasenotes/Cocoa/AppKit.html

--corbin




Moray


--- On Sat, 28/6/08, Andy Kim <[EMAIL PROTECTED]> wrote:


From: Andy Kim <[EMAIL PROTECTED]>
Subject: Re: trackmouse problems in Leopard
To: [EMAIL PROTECTED]
Cc: Cocoa-dev@lists.apple.com
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;
}


___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Re: trackmouse problems in Leopard

2008-06-30 Thread Moray Taylor
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 PROTECTED]> wrote:

> From: Andy Kim <[EMAIL PROTECTED]>
> Subject: Re: trackmouse problems in Leopard
> To: [EMAIL PROTECTED]
> Cc: Cocoa-dev@lists.apple.com
> 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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Re: trackmouse problems in Leopard

2008-06-28 Thread Graham Cox
Not really a very helpful answer, since a) it's not deprecated, and b)  
every existing NSCell class depends on it.


G.

On 29 Jun 2008, at 9:57 am, William Squires wrote:


it's probably deprecated... :)


___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Re: trackmouse problems in Leopard

2008-06-28 Thread William Squires

it's probably deprecated... :)

On Jun 28, 2008, at 8: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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/wsquires% 
40satx.rr.com


This email sent to [EMAIL PROTECTED]


___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Re: trackmouse problems in Leopard

2008-06-28 Thread Andy Kim
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




smime.p7s
Description: S/MIME cryptographic signature
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Re: trackmouse problems in Leopard

2008-06-28 Thread Moray Taylor
Hi, thanks for the reply

It's an NSTextFieldCell subclass, and it's setup as the data cell for the 
column in Interface Builder.

I've tried making in just a plain NSCell subclass, but it doesn't make any 
difference.


Thanks a lot

Moray

--- On Sat, 28/6/08, Andreas Mayer <[EMAIL PROTECTED]> wrote:

> From: Andreas Mayer <[EMAIL PROTECTED]>
> Subject: Re: trackmouse problems in Leopard
> To: cocoa-dev@lists.apple.com
> Date: Saturday, 28 June, 2008, 5:28 PM
> Am 28.06.2008 um 15:24 Uhr schrieb Moray Taylor:
> 
> > 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.
> 
> Since I'm using this methods myself and it works in
> Leopard just as it  
> did in Tiger for me, I guess we need to see more code to
> diagnose your  
> problem.
> 
> Did you subclass some control or just a cell? How do you
> create and  
> set the cell?
> 
> 
> Andreas
> ___
> 
> Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
> 
> 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:
> http://lists.apple.com/mailman/options/cocoa-dev/moray_taylor%40yahoo.co.uk
> 
> This email sent to [EMAIL PROTECTED]


  __
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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Re: trackmouse problems in Leopard

2008-06-28 Thread Andreas Mayer


Am 28.06.2008 um 15:24 Uhr schrieb Moray Taylor:


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.


Since I'm using this methods myself and it works in Leopard just as it  
did in Tiger for me, I guess we need to see more code to diagnose your  
problem.


Did you subclass some control or just a cell? How do you create and  
set the cell?



Andreas
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


trackmouse problems in Leopard

2008-06-28 Thread Moray Taylor
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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]