Re: [NSEvent locationInWindow]
Re: [NSEvent locationInWindow]
- Subject: Re: [NSEvent locationInWindow]
- From: Daniel Klothe <email@hidden>
- Date: Wed, 1 May 2002 17:54:47 -0400
In the mouseDown event of a view, I am setting the origin of an NSRect
(selectionRect) to the location of the event in the view:
- (void)mouseDown:(NSEvent *)theEvent {
selectionRect.origin = [theEvent locationInWindow];
}
When I NSLog the event's desription, the location value seems normal.
When I NSLog the values of selectionRect.origin, they are either really
large or 0. This makes no sense, since the event is clearly storing the
correct values. Does anyone know what is going on with this?
_______________________________________________
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.