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

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

  • Follow-Ups:
    • Re: Looking for sample code to support NSRect resize in a view
      • From: Mike Abdullah <email@hidden>
  • Prev by Date: Re: Printing [SOLVED]
  • Next by Date: Re: Lion - CopiesOnScroll Bug with table view
  • Previous by thread: Scripting Bridge header file problem
  • Next by thread: Re: Looking for sample code to support NSRect resize in a view
  • Index(es):
    • Date
    • Thread