Re: Looking for sample code to support NSRect resize in a view
Re: Looking for sample code to support NSRect resize in a view
- Subject: Re: Looking for sample code to support NSRect resize in a view
- From: Mike Abdullah <email@hidden>
- Date: Fri, 19 Aug 2011 22:00:31 +0200
There's nothing built into cocoa for this. I wrote KSSelectionBorder to implement a decent chunk of the functionality:
https://github.com/karelia/KSSelectionBorder
Sent from my iPad
On 19 Aug 2011, at 07:00 PM, Jeff Schriebman <email@hidden> wrote:
> Hello,
> In a new project I am developing in Lion I display a number of items in a standard view. Each of these items is bounded by a NSRect. I would like to be able to click on an item, display the rectangle around it and then click on the right, left, top or bottom of the rectangle and drag it to change its size. I think that support for the NSCursor Class is pretty much what I need although this class seems to lack the very useful four corner diagonal resize cursor icons. I have found some code using google that at least contains the cursor types resizeLeftCursor, resizeRightCursor, resizeUpCursor and resizeDownCursor that I can adapt for my purpose but I was wondering if I am overlooking some class or sample code that implements this functionality.
> Thank you.
>
> Jeff Schriebman
>
>
>
>
> _______________________________________________
>
> 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
_______________________________________________
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