Re: preventWindowOrdering
Re: preventWindowOrdering
- Subject: Re: preventWindowOrdering
- From: Andreas Schwarz <email@hidden>
- Date: Thu, 14 Mar 2002 08:55:48 -0800
I tried putting this code into a plain NSView subclass and I didn't get
the same problems. This is pretty mysterious... perhaps it has
something to do with the NSView class you're inheriting from. Was it
an NSBrowser? Perhaps the NSMatrix you're clicking in is doing its own
mouse tracking in its mouseDown: implementation?
Nope, my view is a subclass of NSView too. You gave me the idea that
maybe it's a combination of the code that comes before the [super
mouseDown:] and the while loop after it (although why code that comes
AFTER it matters still eludes me), so I commented out all the code in my
mouseDown: method so it looked like this:
[super mouseDown:theEvent];
while ([theEvent type] != NSLeftMouseUp) {
theEvent = [[self window] nextEventMatchingMask: NSLeftMouseUpMask |
NSLeftMouseDraggedMask];
}
(I assume that's what you had too). Same problem still! How strange is
that?
In any case, it seems I was mistaken about what you said and I don't
actually need to call super after [NSApp preventWindowOrdering]...
Though I do have the problem that [NSApp preventWindowOrdering] doesn't
do anything at all. Grrr ;-).
Thanks anyway,
Andreas Schwarz
http://homepage.mac.com/schwarz/
_______________________________________________
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.