• 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
Re: Looking for sample code to support NSRect resize in a view
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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: Jeff Schriebman <email@hidden>
  • Date: Fri, 19 Aug 2011 13:21:17 -0700

Thanks for the pointer Mike.

On Aug 19, 2011, at 1:00 PM, Mike Abdullah wrote:
> There's nothing built into cocoa for this. I wrote KSSelectionBorder to implement a decent chunk of the functionality:
>
> https://github.com/karelia/KSSelectionBorder
>
> On 19 Aug 2011, at 07:00 PM, Jeff Schriebman <email@hidden> wrote:
>> 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.

Jeff




_______________________________________________

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

References: 
 >Looking for sample code to support NSRect resize in a view (From: Jeff Schriebman <email@hidden>)
 >Re: Looking for sample code to support NSRect resize in a view (From: Mike Abdullah <email@hidden>)

  • Prev by Date: iPhone app behaves differently on every other launch
  • Next by Date: Re: Crash Reporter for Lion
  • Previous by thread: Re: Looking for sample code to support NSRect resize in a view
  • Next by thread: Crash Reporter for Lion
  • Index(es):
    • Date
    • Thread