Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: catch that mouseDown?



Copied your responder into MyQCView, with the -(void)mouseDown: (NSEvent *)e; set the bindings of MyQCView to the QCController and the controller key (patch); loaded a composition; unchecked "Forward all events", and ran it from XCode. All looks ok; but alas: no reaction to mouse clicks.

Meanwhile, I've started modding the Player-example for a basis. Works like a charm.

Thanks for your help,
William

On Feb 12, 2006, at 7:43 PM, Pierre-Olivier Latour wrote:

Actually, try adding this to your subclass of QCView and make sure "forward all events" is OFF

- (BOOL) acceptsFirstResponder
{
	return YES;
}

And let us know if it works

On Feb 12, 2006, at 2:46 AM, william van braam wrote:

Beginners question.

I would like to catch the mouseDowns programatically, not in the composition. So in IB I drop a (subclassed QCView) MyQCView on a window and add its corresponding QCController. For MyQCView the checkbox "Forward all events" is unchecked. Run it and click on the MyQCView. The - (void)mouseDown(NSEvent *)e {NSLog@"...";} in MyQCView.m doesn't react.
So, where to catch the mouseDowns?


I must be missing something very basic; a pointer would be appreciated.
(QC2.1.1, XCode2.1.1, iBookG4, Tiger)


Thanks,
William
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartzcomposer-dev mailing list (Quartzcomposer- email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quartzcomposer-dev/pol% 40apple.com


This email sent to email@hidden


________________________________________________________
Pierre-Olivier Latour                            	email@hidden
Quartz Composer Team				Apple Computer, Inc.




_______________________________________________ Do not post admin requests to the list. They will be ignored. Quartzcomposer-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/quartzcomposer-dev/email@hidden

This email sent to email@hidden
References: 
 >catch that mouseDown? (From: william van braam <email@hidden>)
 >Re: catch that mouseDown? (From: Pierre-Olivier Latour <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.