Looking for sample code to support NSRect resize in a view
Looking for sample code to support NSRect resize in a view
- Subject: Looking for sample code to support NSRect resize in a view
- From: Jeff Schriebman <email@hidden>
- Date: Fri, 19 Aug 2011 10:00:44 -0700
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