• 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: Modifying row rect indent in NSOutlineView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Modifying row rect indent in NSOutlineView


  • Subject: Re: Modifying row rect indent in NSOutlineView
  • From: Quincey Morris <email@hidden>
  • Date: Fri, 30 Jan 2015 06:41:52 +0000

On Jan 29, 2015, at 22:24 , Andrew White <email@hidden> wrote:
>
> The code I've inherited uses this to draw rounded rects on the background of each row.  So if I want to modify the width and position of those rects, I need to feed information about the item in outlineView:rowViewForItem into the row view and update the drawing accordingly?

You won’t be able to set the frame of the the row view — it’ll be changed to match the dimensions of the outline view after you return it. So, you’ll need to put a subview inside it, and then use auto layout, or springs & struts, or custom drawing, to get the rounded rect frame indented how you want.

_______________________________________________

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: 
 >Modifying row rect indent in NSOutlineView (From: Andrew White <email@hidden>)
 >Re: Modifying row rect indent in NSOutlineView (From: Quincey Morris <email@hidden>)
 >Re: Modifying row rect indent in NSOutlineView (From: Andrew White <email@hidden>)

  • Prev by Date: Re: copyWithZone archive/unarchive
  • Next by Date: Re: Subclassing NSControl and inheritance of target, action properties
  • Previous by thread: Re: Modifying row rect indent in NSOutlineView
  • Next by thread: copyWithZone archive/unarchive
  • Index(es):
    • Date
    • Thread