• 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
Two views responding
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Two views responding


  • Subject: Two views responding
  • From: Terje Tjervaag <email@hidden>
  • Date: Tue, 5 Aug 2003 10:34:21 +0200

Hi,

I am making an application with (amongst other things) two custom views that I use for drawing. One view is used for point and click mouse operations, and the other view shows the result of these operations. Now, I am experiencing two difficulties:

1. The addTrackingRect: method of NSView has assumeInside: as one of its arguments. How does one overcome the problem of the view not responding if the mouse is already inside (assuming that assumeInside was set to NO). I have to move the mouse out of the view and then back in again for it to respond.

2. I want my second view (the one showing the results of clicking in the first) to have a kind of cursor that can be moved back and forth with the arrow keys. How can I do this and still enable operations in the first view? Key operations does not seem to work unless the view is first responder, and then I cannot use the top view at the same time (it seems to need a mouse click to become first responder again, which doesn't work since I am displaying feedback to the user's mouse movement in the view)

Thanks!

Terje
_______________________________________________
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.

  • Follow-Ups:
    • Invoking command line commands with environment variables set
      • From: Terje Tjervaag <email@hidden>
References: 
 >First slow, then fast (From: Lorenzo <email@hidden>)

  • Prev by Date: Re: Arrow character in IB
  • Next by Date: Invoking command line commands with environment variables set
  • Previous by thread: Re: First slow, then fast
  • Next by thread: Invoking command line commands with environment variables set
  • Index(es):
    • Date
    • Thread