• 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: [NSEvent locationInWindow]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.
  • Prev by Date: Re: PB - is it a real tool or just a toy
  • Next by Date: Re: Using pathnames with special characters
  • Previous by thread: Re: PB - is it a real tool or just a toy
  • Next by thread: Re: [NSEvent locationInWindow]
  • Index(es):
    • Date
    • Thread