FW: Dragging Rect
FW: Dragging Rect
- Subject: FW: Dragging Rect
- From: Lorenzo <email@hidden>
- Date: Wed, 11 Jun 2003 22:59:23 +0200
Hi,
thank you for your suggestion.
I downloaded the CroppedImage sample but it works inside a subclass of an
NSView, so it works properly when redrawing the dragging rectangle over the
NSView.
In my case I subclassed an NSView as "MYView".
Inside MYView I added some objects like NSImageView. Yes, they are subviews
of MYView that I added with [self addSubview:theImageBox];
Now I would like to select the NSImageView objects by dragging, but the
dragging rectangle appears under the objects, and I would like to see it
drawn *over* the objects.
I copied part of the CroppedImage sample into my application, but I got the
same result. The rectangle is still under the objects...
I can send you the code I used.
Best Regards
--
Lorenzo
email: email@hidden
>
From: "John C. Randolph" <email@hidden>
>
Date: Wed, 11 Jun 2003 11:28:32 -0700
>
To: Lorenzo <email@hidden>
>
Cc: email@hidden
>
Subject: Re: Dragging Rect
>
>
There's a sample that shows one way to draw a few different styles of
>
selection markers. See:
>
>
http://developer.apple.com/samplecode/Sample_Code/Cocoa/
>
Cropped_Image.htm
>
>
On Wednesday, June 11, 2003, at 07:06 AM, Lorenzo wrote:
>
>
> Hi,
>
> I would like to draw a typical rectangle while I am selecting objects
>
> in my
>
> view by dragging the mouse.
>
> I did that, but the rectangle has been drawn under the objects,
>
> instead I
>
> would like to draw the rectangle *over* the objects.
>
>
It's not clear what you mean by 'objects' here. Are you referring to
>
subviews, or things that your custom view draws in its own graphics
>
context?
>
>
-jcr
>
>
John C. Randolph <email@hidden> (408) 974-8819
>
Sr. Cocoa Software Engineer,
>
Apple Worldwide Developer Relations
>
http://developer.apple.com/cocoa/index.html
>
------ End of Forwarded Message
_______________________________________________
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.