Re: General NSView Query
Re: General NSView Query
- Subject: Re: General NSView Query
- From: Matt Neuburg <email@hidden>
- Date: Wed, 26 Sep 2007 11:42:49 -0700
- Thread-topic: General NSView Query
On Wed, 26 Sep 2007 09:40:32 -0400, "Burns, Michael" <email@hidden>
said:
>Hi all,
>
>As part of a project I've been working on I have a simple drawing interface
that allows the user to draw shapes/text in to an NSView. One of the tools is a
polygon tool -- the kind where you click at one point, then you click at another
point and so on and so on until you double click and the polygon creation is
ended and the points are all connected by lines.
>
>Now in an old Mac program (World Builder -- created in 1986) there was a
polygon tool like I described above. One of the things I liked about it was
once you started a polygon shape, you could click outside of the window you were
drawing in to add points to the polygon -- as if when a polygon was created
control of the screen was taken over until it was finished.
>
>Is anything like this possible with cocoa/NSView?
You could cover the screen temporarily with a big invisible window to detect
the clicks. m.
--
matt neuburg, phd = email@hidden, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
One of the 2007 MacTech Top 25: <http://tinyurl.com/2rh4pf>
AppleScript: the Definitive Guide - Second Edition!
<http://www.amazon.com/gp/product/0596102119>
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden